node-clinic icon indicating copy to clipboard operation
node-clinic copied to clipboard

How to see elapsed time for flame graph items?

Open jeremy-w opened this issue 3 years ago • 1 comments

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)

  1. run a clinic flame
  2. look at the UI when it opens up

Screenshot

1.7% of what? how many seconds is that?

Screen Shot 2021-10-27 at 12 00 35

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

jeremy-w avatar Oct 27 '21 16:10 jeremy-w

I'm also interested in this

klausXR avatar Jan 29 '22 07:01 klausXR

+1

waseemshahwan avatar Apr 01 '23 12:04 waseemshahwan

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.

RafaelGSS avatar Apr 03 '23 09:04 RafaelGSS