You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implemented miden-debug flamegraph as a non-interactive execution mode. It drives DebugExecutor to completion one VM cycle at a time, samples callstack.frames() on each cycle, converts frames to semicolon-separated folded stack paths, aggregates cycle counts per stack, and renders the result as an SVG flame graph with inferno or as folded-stack text for external tools
Nice! It'd be useful, if you're able, to see an example like the one you show here, but generated from a run against one of the more involved example projects from the compiler repo, to get a sense of what a typical flamegraph would look like, just in case it raises any obvious issues in the process. That may require the transaction debugging stuff though, so we may have to wait until some of those other in-flight PRs and stuff land.
Nice job!
Most of the code to be profiled will be the rollup code executed in transactions. It'd be great to find a way to expose the flamegraph generation API through the tx API. I think the most likely use case among the developers would be to enable flamegraph generation in their tests that are using the MockChain API.
Nice job! Most of the code to be profiled will be the rollup code executed in transactions. It'd be great to find a way to expose the flamegraph generation API through the tx API. I think the most likely use case among the developers would be to enable flamegraph generation in their tests that are using the MockChain API.
Yep. It does make sense.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented
miden-debug flamegraphas a non-interactive execution mode. It drivesDebugExecutorto completion one VM cycle at a time, samplescallstack.frames()on each cycle, converts frames to semicolon-separated folded stack paths, aggregates cycle counts per stack, and renders the result as an SVG flame graph with inferno or as folded-stack text for external toolsIt uses
infernocrate as a new dependency.