-
Notifications
You must be signed in to change notification settings - Fork 841
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
Configure CPUs for profiling #481
Comments
Async-profiler currently does not support CPU selection. What is a use case for such an option? I can't imagine how |
The use case is that I want to see what is happening on a single core without knowing which threads are running. If I see an imbalance in the CPU load between CPUs, I just want to have a quick peek. Normally I use 'perf top' for that, but it doesn't work for Java applications. Not all architectures have pinned threads and even when threads are pinned, there can always be threads (e.g. GC) that are not pinned. So I want to see what is running on a single CPU without being too specific. Otherwise I'm at risk of filtering out relevant profiling info and chasing down the wrong problem. I already had a look at the implementation. Passing a CPU would be simple. But indeed, let the logic work over multiple CPUs is a bit more complicated. The key question is: will you accept a feature where the CPU(s) is configured for profiling? |
I don't mind adding an option for profiling only one selected CPU, as the change is rather small and straightforward. |
It is possible to configure particular CPU's for profiling?
With perf I frequently check what a particular CPU is doing by passing an
-C <cpu>
.Does async-profiler has such an ability? I could not find anything in the documentation.
If it doesn't have this capability, I would not mind picking up this task.
The text was updated successfully, but these errors were encountered: