d3-flame-graph icon indicating copy to clipboard operation
d3-flame-graph copied to clipboard

toggle for root/leaf merge

Open brendangregg opened this issue 10 years ago • 2 comments

Current flame graphs merge from root to leaf. It can sometimes be helpful to flip the merge direction, and merge from leaf to root. For example, imagine hundreds of code paths ending in mutex_lock, and trying to gauge the total time in mutex_lock. (Ok, search #2, should help in that specific case).

A means to toggle root/leaf merge would be great. I'm not sure how that's best visualized: probably flipping to an icicle plot for leaf merge, as a visual clue that it is a different flame graph type.

brendangregg avatar Oct 09 '15 21:10 brendangregg

FlameGraph> cat example-stacks.txt | ./stackcollapse.pl | ./flamegraph.pl --reverse --inverted --title "Leaf Merge" > example-leafmerge.svg

spiermar avatar Oct 12 '15 21:10 spiermar

this would be very useful

ceeaspb avatar Oct 18 '15 22:10 ceeaspb