Runner API: jmh command line arguments propagation
Sergey Kuksenko
sergey.kuksenko at oracle.com
Tue Nov 19 05:05:16 PST 2013
Hi,
There is a strong necessity to set execution options from command line.
I have a full freedom to do it myself right now, because of I am writing
the main. But I'd like not to invent a wheel and use some standard API.
Mainly I need it to specify forked JVM parameters, and I wouldn't argue
to get it also for jmh parameters.
Copying host JVM args is not a solution, first of all sometimes I have
not enough physical memory to create two jvm instances with large heaps
(anyway host jvm will be happy with small heap). Besides, knowing that
extracting such JVM args as "-server", "-d32" is an issue right know -
I'd fully happy with "-jvmargs" jmh option.
For example, something like that:
class Options {
....
/**
* Extract and set JMH options from the given command line arguments.
* @return array arguments which are not recognized as JMH's options.
*/
String[] extractJMHOptions(String[] args);
}
--
Best regards,
Sergey Kuksenko
More information about the jmh-dev
mailing list