Feature: Increase concurrency of flamegraph rendering
kwannoel opened this issue · comments
Background
Typically I use nperf
to render a flamegraph like so.
nperf flamegraph --merge-threads perf.data > perf.svg
htop
shows it just uses a single cpu core used:
It takes a long while to render the flamegraph on a Machine with 8 CPUs, 16GB RAM.
Will it be possible add an option to increase concurrency of flamegraph generation? I'm not too familiar with the internals of nperf.
I will definitely be more than happy to investigate, and try implementing it, if it's a good feature to have.
Took a further look, seems like flamegraph rendering depends on inferno::flamegraph
.
There's an open issue for that there: jonhoo/inferno#256.
I guess it has to be fixed upstream first, and just bump dependency after. Keeping this issue open as a reminder (for myself) to bump dependency.
Seems like it might have been fixed, will try to bump dependency and see how it is.
Edit: After bumping dependency it's still slow, I realized it's a different issue