Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow generating a map of section nesting in debug builds #5279

Merged
merged 1 commit into from May 16, 2024

Conversation

lutter
Copy link
Collaborator

@lutter lutter commented Mar 13, 2024

With this PR, debug builds (and only debug builds) pay attention to an environment variable GRAPH_SECTION_MAP which will make it print a list of the parent/child relations of stopwatch sections. That can then be turned into an image, e.g. with dot to visualize the nesting.

sections

Copy link
Contributor

@zorancv zorancv left a comment

Choose a reason for hiding this comment

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

Works on my machine.

graph/src/components/metrics/stopwatch.rs Show resolved Hide resolved
@lutter lutter merged commit 73c1de1 into master May 16, 2024
7 checks passed
@lutter lutter deleted the lutter/stopwatch branch May 16, 2024 18:05
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.

None yet

2 participants