LLNL/hatchet

Has anyone tried loading the flamegraph output from hatchet into https://www.speedscope.app/?

balos1 opened this issue · 4 comments

I can generate a Flamegraph using Brendan Gregg's Flamegraph perl script as shown in the documentation for Hatchet. https://www.speedscope.app/ is a nice visualizer for Flamegraphs that is suppose to support the folded stacks format, but it does not recognize my file (the one that Flamegraph.pl reads fine). I was just wondering if anyone has successfully used https://www.speedscope.app/ with output from hatchet or not (in which case, maybe it is something specific to file file).

Hi @balos1, thanks for the pointer to speedscope, very cool! I just generated a text file with gf.to_flamegraph() using one of our hatchet test files, and am also running into an error loading it in the visualizer. Let me look into this a bit and see if we need to update hatchet's flamegraph output format.

@balos1 In your hatchet flamegraph output, can you confirm that some of the lines have a float value at the end of the line? I believe this is the cause of the unrecognized format error from speedscope. I've pushed up a fix here: #42. If you want to try re-outputting your file with ints instead of floats, please let me know if you are then able to read it into speedscope.

Yeah, I can confirm that my file has floats and that turning them into ints allows speedscope to read it. Thanks!

Great! I'll get this merged in and close this issue, thanks again for reporting this!