JuliaPerf / PProf.jl

Export Julia profiles to the pprof format
MIT License
155 stars 18 forks source link

Add `ui_relative_percentages=true` which controls `-relative_percentages` in pprof. #22

Closed NHDaly closed 4 years ago

NHDaly commented 4 years ago

By default, this now causes ignore/hide events through the Web UI to recompute percentages.

This allows you to filter out parts of the program that aren't relevant to what you're measuring, such as __psynch_cvwait in a single-threaded program.

However, sometimes users may simply be using ignore/hide to get a "cleaner" view of their data, but very much don't want filtering the view to affect the underlying data. In that case, users can disable this feature via ui_relative_percentages=false


I called the flag ui_relative_percentages instead of relative_percentages, because it is only meaningful if opening the web ui, not when just generating a .pb.gz dump.

Addresses step 1 of #19.