Ability to add "jvm arguments" based on "@Param"
Aleksey Shipilev
aleksey.shipilev at oracle.com
Fri Jun 5 07:29:20 UTC 2015
On 06/01/2015 05:02 PM, Vladimir Sitnikov wrote:
> I see two main use cases:
> 1) Generate unique set of logs per iteration.
> For instance:
> 1,1) being able to use unique names for -Xloggc, -XX:+FlightRecorder options
> 1.2) use different jar files in the classpath (in case of non-shaded dependency)
> 1.3) being able to calculate OperationsPerInvocation.
>
> 2) Explore search space. For instance, if parameters are dependent, it
> could make sense to investigate different combinations.
>
> In case #1, additional configuration of OptionsBuilder is performed
> _after_ jmh picks the values for all the parameters.
> We can have even some kind of predefined "post-processors": "save gc
> logs to gc_param1value1_param2value2.log like files".
>
> In case #2 some kind of Supplier is required.
>
>
> It looks case #1 happens more often, and it is somewhat different from
> #2, so they can be treated differently.
>
> Any thoughts on that?
I think all these use cases are handled by API with a minimal coding.
So, whatever you come up with can be prototyped as the wrapper around
the JMH API. Then we can talk about what parts of it should be migrated
under the JMH API.
Thanks,
-Aleksey
More information about the jmh-dev
mailing list