Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Features to aid embedding flame graphs in other tools #8

timbunce opened this Issue · 4 comments

2 participants


Hello Brendan.

I'm working on integrating flame graphs into Perl's Devel::NYTProf profiler.
I'd like to suggest a few features that would help me with that integration.

  • Add option(s) to make the svg areas be links. Something like --linkfmt "../foo/%s/src" where the %s gets replaced with the function name. So when

  • Options to change the wordings: the title, "Function", "sample" etc. For my use "Function" would be "Subroutine" and "samples" would be "microseconds".

  • Add separators into the count, so 18459905 would be shown as 18,459,905.

If you like the ideas I'll develop them and send you pull requests.


The first bullet was cut off - but sounded interesting so far. :) The diffs have looked good so far, and have kept the program short which is great.


I don't know what I meant to say with that first bullet, but the way I've implemented the linking seems much better anyway.

I think I'm done now, baring any problems I find in actual usage.

The Flame Graph will be the headline feature of the NYTProf v5 release. Thanks!


Sounds great! I just tried NYTProf on a small sample Perl program, and it worked great, but I can see that once the program gets large a Flame Graph may really help wade through all the data. Should identify inclusive/exclusive time visually too, which should be neat.


I think we can call this done now :)
Many thanks Brendan!

@timbunce timbunce closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.