node-clinic
node-clinic copied to clipboard
How to see elapsed time for flame graph items?
Expected Behavior
I can readily see, not just the fraction of overall profiling time spent in a portion of the graph, but the elapsed time: a hot stack that runs for a small fraction of a second might not be worth going after. (I see that bubble does display info like this, so I'm hoping I'm just missing something obvious. 🤞 )
Current Behavior
I can't work out where to see elapsed time anywhere in the UI.
Steps to Reproduce (for bugs)
- run a clinic flame
- look at the UI when it opens up
Screenshot
1.7% of what? how many seconds is that?
Environment
- Clinic.js version:
> clinic flame -v
v9.0.0 (0x v4.11.0)
- Node.js version:
> node -v && npm -v
v14.17.3
6.14.13
- Browser name and version: Firefox 94.0b7 (64-bit)
- Operating system and version:
> sw_vers
ProductName: macOS
ProductVersion: 11.4
BuildVersion: 20F71
I'm also interested in this
+1
Clinic.js now shows the time-elapsed on the header. This should make the percentage calculation better. Please note that the intention of flamegraphs is to abstract the time. If you want to know samples over time you need to check flamecharts.