llogiq / flame

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

How to get HTML from multiple threads? #40

Open Ploppz opened 5 years ago

Ploppz commented 5 years ago

I found that you have a threads() function, from which I can get a Vec<Span> for each thread. But Span only has a function to write to json, not html. How can I get HTML output from different threads? Or alternatively, what can I do with a JSON file to display the flame graph?