Skip to content

Flamegraph in silver surfer#124

Merged
alexX512 merged 8 commits into
mainfrom
alexey/flamegraph_to_overseer
Jun 26, 2026
Merged

Flamegraph in silver surfer#124
alexX512 merged 8 commits into
mainfrom
alexey/flamegraph_to_overseer

Conversation

@alexX512

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread crates/bin/src/main.rs Outdated
tracing::debug!("start");

// `#[timed]` is inert until a process opts in.
silver_common::flamegraph_timer::enable_overseer();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets not use 'overseer' ..

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, misnaming sometimes

Comment thread justfile Outdated
# — surfer labels the producer's counter slots positionally, so a mismatch
# mislabels the columns. Extra args pass through as `[BASE_DIR] [APP_NAME]`.
surfer events="instructions,cycles,l1d-misses,l2-misses,l3-misses" *args='':
SILVER_PERF_EVENTS="{{events}}" cargo run --release -p silver_surfer --features perf -- {{args}}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a default for the events?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have default events const DEFAULT_EVENTS: &str = "instructions,cpu-cycles,branch-misses,cache-misses";, potentially will need to dump to a file which perf events we use to correctly display in surfer instead of manual env var here

@alexX512 alexX512 merged commit 8ccf622 into main Jun 26, 2026
3 checks passed
@alexX512 alexX512 deleted the alexey/flamegraph_to_overseer branch June 26, 2026 15:27
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