Use my own ResultFormat
Aleksey Shipilev
aleksey.shipilev at oracle.com
Wed Jun 24 14:14:59 UTC 2015
Hi Steffen,
On 06/24/2015 02:29 PM, Steffen Koehler wrote:
> it's simple to create an own ResultFormat class by implementing
> ResultFormat. But how can I use this class? The OptionBuilder offers
> only the possibility to add an ResultFormatType.
I am trying to understand the use case for having a custom ResultFormat.
Can you describe what you are trying to accomplish?
If you are using API, then the benchmark results are already available
from Runner.run call, you can feed them into your own formatter.
If you are using CLI, then you would need some way to make JMH recognize
the ResultFormat class, instantiate it, and feed the data there. Our
pluggable profilers are like that, we can make ResultFormat that way as
well.
Thanks,
-Aleksey
More information about the jmh-dev
mailing list