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

Not aggregating stacks for threads #339

Open
mux opened this issue May 15, 2024 · 3 comments
Open

Not aggregating stacks for threads #339

mux opened this issue May 15, 2024 · 3 comments

Comments

@mux
Copy link

mux commented May 15, 2024

I have an application with multiple worker threads that share the same entry point. If the threads have different names, I can see traces for individual threads. If they share the same name, they are aggregated. Is there a way to get non-aggregated flamegraphs even when the threads have the same name?

@randomstuff
Copy link

It depends on the tool you are using. For example when using stackcollapse-jstack.pl, the --include-tid can be used to include a thread ID.

@mux
Copy link
Author

mux commented May 16, 2024

I am using perf, and haven't seen any such option in the stackcollapse-perf.pl utility.

@randomstuff
Copy link

randomstuff commented May 16, 2024

I guess, the --tid flag should do the trick:

--tid # include TID and PID with process names [1]

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

No branches or pull requests

2 participants