self.caliper_args = self.context.options.target_class
if self.context.options.memory_profiling:
self.caliper_args += ["--measureMemory"]
if self.context.options.debug:
self.jvm_args.extend(JvmDebugConfig.debug_args(self.context.config))
self.caliper_args += ["--debug"]
self.caliper_args.extend(self.context.options.extra_caliper_args)
def prepare(self, round_manager):
// TODO(John Sirois): these are fake requirements in order to force compile to run before this
// goal. Introduce a RuntimeClasspath product for JvmCompile and PrepareResources to populate
After Change
// TODO(Steve Gury):
// Find all the target classes from the Benchmark target itself
// https://jira.twitter.biz/browse/AWESOME-1938
self.args.insert(0, self.get_options().target)
if self.get_options().memory:
self.args.append("--measureMemory")
if self.get_options().debug:
self.args.append("--debug")