Conversation
|
Hi, this is a great improvement! :) Does this mean that a correct handling of CPU and WALL events is something like this: There is no need for any kind of mapping between jdk.ExecutionSamples and profiler.WallClockSample, am I right? Thanks, Petr |
|
@petrbouda The meaning of
I agree it would be clearer to leave |
|
Hi Andrei, thank you for your answer. I've already looked into JfrReader to understand your parsing logic. |
|
It was actually trivial: I modified profiler to always emit different events for CPU vs. Wall clock samples. Note: if |
|
Cool! It makes recordings much smaller 🙂 |


Description
Optimize wall clock profiling by skipping redundant samples when we know thread CPU time has not changed since the last sample.
Related issues
Resolves #1007.
Motivation and context
Make wall clock profiling safe for production use, even for applications with thousands of threads.
How has this been tested?
Run benchmarks with new wall clock mechanism and legacy wall clock (
nobatch) and compare flame graphs.Verify the number of
ExecutionSampleandWallClockSampleevents manually.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.