Skip to content

[Feature] Add flamegraph generation#3916

Draft
kaimast wants to merge 4 commits intostagingfrom
feat/flamegraph
Draft

[Feature] Add flamegraph generation#3916
kaimast wants to merge 4 commits intostagingfrom
feat/flamegraph

Conversation

@kaimast
Copy link
Copy Markdown
Contributor

@kaimast kaimast commented Oct 7, 2025

With this PR, nodes create a snarkos-trace.folded file on shutdown if the flamegraph feature is enabled.

One can then create a flame graph from the file. For example, to generate an SVG of the flame graph using the inferno crate, run the following command:
inferno-flamegraph snarkos-trace.folded > flamegraph.svg

@kaimast kaimast force-pushed the feat/flamegraph branch 7 times, most recently from 25d6c7b to 619c0f6 Compare October 8, 2025 23:01
@kaimast kaimast changed the title [WIP] Add flamegraph generation [Feature] Add flamegraph generation Oct 9, 2025
@kaimast kaimast force-pushed the feat/flamegraph branch 3 times, most recently from ce25c93 to c7c413a Compare October 23, 2025 21:19
@vicsn
Copy link
Copy Markdown
Collaborator

vicsn commented Nov 19, 2025

Can you show an example visualization?

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.

2 participants