llogiq / flame

An intrusive flamegraph profiling tool for rust.
Apache License 2.0
706 stars 30 forks source link

Folding? #15

Open johalun opened 7 years ago

johalun commented 7 years ago

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...

TyOverby commented 7 years ago

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.

DaseinPhaos commented 7 years ago

That looks promising! Looking forward to it