Setting AggregationPolicy for EVENTS AuxCounters

Aleksey Shipilev shade at redhat.com
Mon Nov 13 17:08:54 UTC 2017


On 10/27/2017 05:25 AM, Owen O'Malley wrote:
> There doesn't seem to be any way to change the AggregationPolicy for
> AuxCounters(EVENTS) so it is always sum. Did I miss something?

Yes, that is by design: EVENTS are one-off things. If you want them to be treated as normal metrics,
e.g. as invocation counts for @Benchmark methods, use OPERATIONS. Is there a compelling use case
that does not fit either?

-Aleksey



More information about the jmh-dev mailing list