JMH and ocperf

Aleksey Shipilev shade at redhat.com
Fri Nov 18 09:35:11 UTC 2016


Hi,

On 11/17/2016 09:57 PM, Sergey Melnikov wrote:
> So, I'd like to propose to modify JMH a bit: to let user to overwrite
> 'perf' executable name via environment variable. It let to use ocperf
> with JMH and to specify symbolic names via JMH parameters.
> 
> Therefore, JMH run will look like:
> 
> $ PERF=ocperf.py java -jar target/benchmarks.jar -prof
> perfasm:event=br_inst_retired.far_branch
> 
> Alexey, what do you think, if I implement this functionality, will it
> be possible to merge fix to trunk?

I am not resistant to the idea, but I am missing something here.

Why can't pmu-tools project provide the system/user-wide alternative for
perf, so that JMH and others just use that instead of hacking the
specifics in? This would seems like a proper way to do interop between
the tools.

Thanks,
-Aleksey



More information about the jmh-dev mailing list