kimikage / ProfileSVG.jl

Write flame graphs to SVG format and explore them interactively in Jupyter, Pluto, etc.
MIT License
53 stars 7 forks source link

Timings of frames #59

Closed anandijain closed 3 years ago

anandijain commented 3 years ago

Currently, I don't see any options to see how long the program spent in a given frame/block.

Ideally I wouldn't have to run the profiler then run my f again with @time.

I think it'd be pretty useful to also have stats on this in the SVG, is this possible?

Thanks!

kimikage commented 3 years ago

Since the timer used for profiling is not highly accurate, it is difficult to indicate the exact duration. There are several possible options.

  1. Display only the count number
  2. Support the conversion to physical time, knowing that it is inaccurate
  3. Allow manual correction of the conversion factor
  4. Add a calibration mechanism

Let's support up to 2. first, shall we?

anandijain commented 3 years ago

thanks for quick response. that sounds great.

i figured it had something to do with not being able to pin down an accurate result.

any way i can help?