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

Restore the ability to produce a meaningful flamegraph #391

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

rsheeter
Copy link
Contributor

@rsheeter rsheeter commented Aug 10, 2023

Assignment of thread names causes each to root individually in flamegraph, making it essentially useless. Note the tp0, 1, etc:

image

If we don't name them the flamegraph is very useful:

image

So don't name the threads. If we really like thread names we can make it optional - even on by default - in a followon while also documenting how to get a good flamegraph.

JMM.

@rsheeter rsheeter changed the title WIP: Restore the ability to produce a meaningful flamegraph Restore the ability to produce a meaningful flamegraph Aug 10, 2023
@rsheeter rsheeter marked this pull request as ready for review August 10, 2023 16:59
@cmyr
Copy link
Member

cmyr commented Aug 10, 2023

Huh that's funny behaviour, I wonder what the rationale is? I did a quick skim of the flamegraph docs and didn't see an option to turn off the thread grouping, so 🤷

In any case, this was part of a patch that included one other change, to how we format log messages, and you'll want to back that out too (see eadad)

@rsheeter rsheeter merged commit 51aa663 into main Aug 10, 2023
8 checks passed
@rsheeter rsheeter deleted the fix_flamegraph branch August 10, 2023 17:10
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.

3 participants