@Target(value=TYPE) @Retention(value=RUNTIME) public @interface AuxCounters
AuxCounters
annotation can be used to mark State
objects
as the bearers of auxiliary secondary results. Marking the class with this annotation
will enable JMH to look for public {int, long} fields, as well as public methods
returning {int, long} values, and treat their values as the operation counts
in current iteration.
This allows to override the default operations counter with the user-provided one.
Instead of relying on JMH itself counting the number of Benchmark
calls,
users can tell JMH how many calls actually happened. Note that it might require
modifying the counter at each Benchmark
invocation.
THIS IS AN EXPERIMENTAL API, which means, among other things:
BenchmarkMode
-sScope.Thread
level, because JMH metric
aggregator expects the distinct counters coming from every measurement thread.Copyright © 2016. All rights reserved.