Skip to content

Conversation

@kstppd
Copy link
Contributor

@kstppd kstppd commented Sep 10, 2025

This PR adds functionality in the paralleltimertree.cpp to generate flamegraph stack traces. When Vlasiator finishes phiprof_flamegraph.txt is also dumped. Later on we can use any kind of script that digests the stack trace to produce nice interactive svg flamegrapghs.

Example using FlameGraph. These are cool because they are interactive and searchable.

git clone https://github.com/brendangregg/FlameGraph
cat phiprof_flamegraph.txt | ./FlameGraph/flamegraph.pl > new.svg

produces:
new
which can be opened with any modern browser and is interactive like this but I cannot host it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant