Custom events with Linux perf profiler
Richard Startin
richard at openkappa.co.uk
Mon Dec 31 13:45:24 UTC 2018
I would like to measure the number of page faults per benchmark iteration, rather than normalised per operation. With the perfnorm profiler, I can specify:
-prof perfnorm:events=page-faults
With
-prof perf:events=page-faults
I get:
'e' is not a recognized option
Usage: -prof <profiler-name>:opt1=value1,value2;opt2=value3
Options accepted by perf:
delay=<ms> Delay collection for a given time, in milliseconds;
-1 to detect automatically. (default: [-1])
help Display help.
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, but are contributions subject to the Oracle contributor agreement?
Thanks,
Richard
More information about the jmh-dev
mailing list