Make result formats pluggable

Dmitry Chuyko dmitry.chuyko at bell-sw.com
Fri Mar 6 13:56:23 UTC 2020


One more sometimes annoying thing in this space is that only one output 
format is used. Sometimes it might be useful to pass something like

'... -format 
my.json.Formatter:file=out.json;flavour=LNT,my.csv.Formatter:file=also-out.csv 
' (or 2 -format chunks with same effect)

-Dmitry

On 3/2/20 7:26 PM, Dmitry Chuyko wrote:
> That would be convenient.
>
> One more possible case that immediately comes to my mind is LNT, which 
> basically consumes json, but it is obviously different from what JMH 
> produces. Similar to Prometeus' case it sounds like a kind of 
> "ExternalFormatter". Providing fqn of formatter class may also be an 
> option.
>
> -Dmitry
>
> On 2/19/20 6:59 PM, Aleksey Shipilev wrote:
>> On 2/19/20 4:09 PM, Sergei Egorov wrote:
>>> Implementation wise, it will be done the same way as in profilers (see
>>> ProfilerFactory#getProfiler [2]):
>> Yes, let's try to do that.
>>


More information about the jmh-dev mailing list