Package com.google.caliper.config

Examples of com.google.caliper.config.VmConfig


    ImmutableSet.Builder<VirtualMachine> builder = ImmutableSet.builder();
    if (vmNames.isEmpty()) {
      builder.add(new VirtualMachine("default", config.getDefaultVmConfig()));
    } else {
      for (String vmName : vmNames) {
        VmConfig vmConfig = config.getVmConfig(vmName);
        builder.add(new VirtualMachine(vmName, vmConfig));
      }
    }
    return builder.build();
  }
View Full Code Here


    allocationInstrument.setOptions(ImmutableMap.of("trackAllocations", "true"));
    Experiment experiment = new Experiment(
        allocationInstrument.createInstrumentation(method),
        ImmutableMap.<String, String>of(),
        new VirtualMachine("foo-jvm",
            new VmConfig(new File("foo"), Arrays.asList("--doTheHustle"), new File("java"))));
    BenchmarkSpec spec = new BenchmarkSpec.Builder()
        .className(TestBenchmark.class.getName())
        .methodName(method.getName())
        .build();
    ProcessBuilder builder = createProcess(experiment, spec);
View Full Code Here

TOP

Related Classes of com.google.caliper.config.VmConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.