flame icon indicating copy to clipboard operation
flame copied to clipboard

Folding?

Open johalun opened this issue 7 years ago • 2 comments

Hi!

This looks great and easy to use. Is there any API planned for folding the results (like https://github.com/brendangregg/FlameGraph)? I want to profile some tight loops and only a few seconds of running my program generates 50+MB html file...

johalun avatar Apr 19 '17 06:04 johalun

I'm going to be giving Flame some more love in the coming weeks and I'll definitely keep this in mind!

My current plan is to remove dump_html, dump_stdout and its ilk and instead just provide Serde serialize / deserialize implementations. This way you can inspect the internal data-structures like you currently can, but when you're done performing operations on them (like folding), it's possible to dump the result and view it in a new online viewer.

TyOverby avatar Apr 19 '17 23:04 TyOverby

That looks promising! Looking forward to it

DaseinPhaos avatar May 05 '17 06:05 DaseinPhaos