Hardware counters in JMH

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed Mar 19 13:08:05 UTC 2014


On 03/17/2014 10:57 PM, Nitsan Wakart wrote:
> I used Overseer and reported via AuxCounters. It is rather unpleasant as
> it requires the Overseer implementation independently and is not well
> packaged in any way. The solution to different events names etc is also
> rather crude. But it works for a specific case.
> Having JMH deal with this for me would be awesome, when is it coming?

This will require rebuilding the profiler bindings in JMH, and so will
take a while. In our internal roadmap, it is the feature for the next
0.x release, which is 0.6 at this point.

Here's the rough prototype we have now:
 http://cr.openjdk.java.net/~shade/jmh/perf-printassembly/

(We will, most probably, target Linux only, since that platform seems to
be the only providing the reliable userspace access to HWC without
bothering us with doing any native code).

-Aleksey.


More information about the jmh-dev mailing list