Custom events with Linux perf profiler

Aleksey Shipilev shade at redhat.com
Tue Jan 15 15:36:33 UTC 2019


On 1/15/19 1:07 PM, Aleksey Shipilev wrote:
> On 12/31/18 2:45 PM, Richard Startin wrote:
>> It looks like, as of version 1.21, the code in LinuxPerfNormProfiler dedicated to handling custom
>> events is not implemented in LinuxPerfProfiler. If this isn't otherwise available, I would be
>> happy to contribute a patch to add custom events to the perf profiler, 
> 
> Yes, we can add "events" handling to -prof perf. It was not added before, because most users are
> fine with -prof perfnorm. Please hack up the patch, if you are willing. If not, I'd get around to it
> some time later.

Wait a minute, my memory is blurry, here's the implementation by Eric Caspole:
 http://hg.openjdk.java.net/code-tools/jmh/rev/66fb723292d4

It would make it in the next release. Meanwhile, can you try to build 1.22-SNAPSHOT yourself and see
if it works as expected?

-Aleksey



More information about the jmh-dev mailing list