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

Enhancement request: support per thread plots #34

Open
dgotwisner opened this issue Jun 7, 2017 · 0 comments
Open

Enhancement request: support per thread plots #34

dgotwisner opened this issue Jun 7, 2017 · 0 comments

Comments

@dgotwisner
Copy link

By default when feeding oprofile data, it sums across all threads and presents a plot for that. However, in many multithreaded programs, this frequently points to the wrong place to look at for optimization. For example, in a recent test, we have many threads that wait either on condition variables or go to sleep for intervals, and other threads that are CPU bound. What happens in this case is that gprof2dot shows that most of the time is spent in the code to wait (60% of the time in nanosleep, for example).

It would be really useful in the case of oprofile and vtune (not sure if the other programs give the ability to report samples per thread) to generate one plot per thread, or to have a command line option that indicates which thread to process. In one of our use cases, we have up to 100 threads (or more, many are short lived), and would like to look at specific threads - the text output is too wide to be useful for viewing, which is why I started using gprof2dot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants