thlorenz / flamegraph

Generates flamegraphs with Node.js or in the browser.
http://thlorenz.github.io/flamegraph/web/
MIT License
165 stars 28 forks source link

[enhancement] clicking on a bar in the svg should zoom that section #6

Closed rafiquemt closed 9 years ago

rafiquemt commented 9 years ago

in the perl generated flamegraph (from brendan gregg), you can zoom into a subsection when you click on a bar in the svg would be nice to have in the svg generated with your tool

thlorenz commented 9 years ago

Interesting, could you provide screenshots please so I get an idea of how that works? I basically ported these from @brendangregg's scripts, so he must have added this feature recently.

rafiquemt commented 9 years ago

zoom sorry for the 8mb gif, but quickest way to attach a video

thlorenz commented 9 years ago

Thanks, I also found the commit that added this should be pretty straight forward to port over.

rafiquemt commented 9 years ago

Thanks for the quick turnaround!

thlorenz commented 9 years ago

Implemented a pan zoom (not 100% smooth yet, but more usable IMO than the subsection click way). flamegraph-zoom

rafiquemt commented 9 years ago

Awesome!

On Jan 15, 2015, at 9:29 AM, Thorsten Lorenz notifications@github.com wrote:

Implemented a pan zoom (not 100% smooth yet, but more usable IMO than the subsection click way).

— Reply to this email directly or view it on GitHub.