JMH and ocperf

Aleksey Shipilev shade at redhat.com
Tue Dec 6 11:39:43 UTC 2016


On 12/05/2016 10:42 PM, Sergey Melnikov wrote:
> As I wrote, the main issue here is an event naming style. Few details:
> 
> ocperf.py takes events with dots ('.') in titles but outputs events with underscores ('_') instead of dots.
> So, you need to replace dots ('.') with underscores ('_') and you will get results for specified events:
> 
> -prof perfasm:event=cycles,br_inst_exec_all_branches
> 
> The reason for this a bit behaviour is backward compatibility with old versions of perf.

Right.

-prof perfasm:event=cycles,br_inst_exec_all_branches works for me.

I am undecided if we should try to match the event names with underscores too,
on the off-chance we run with ocperf.py. Or we maybe we should wait for
ocperf.py to drop that in future?

Thanks,
-Aleksey



More information about the jmh-dev mailing list