/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
D | BenchmarkCreator.java | 39 private final Class<?> benchmarkClass; field in BenchmarkCreator 45 @Running.BenchmarkClass Class<?> benchmarkClass, in BenchmarkCreator() 47 this.benchmarkClass = benchmarkClass; in BenchmarkCreator() 48 this.benchmarkClassCtor = findDefaultConstructor(benchmarkClass); in BenchmarkCreator() 52 private static Constructor<?> findDefaultConstructor(Class<?> benchmarkClass) { in findDefaultConstructor() argument 54 for (Constructor<?> constructor : benchmarkClass.getDeclaredConstructors()) { in findDefaultConstructor() 63 String.format(BENCHMARK_NO_PUBLIC_DEFAULT_CONSTRUCTOR, benchmarkClass), null); in findDefaultConstructor() 82 for (Field field : benchmarkClass.getDeclaredFields()) { in createBenchmarkInstance()
|
D | BenchmarkClassModule.java | 45 BenchmarkClass benchmarkClass) { in provideBeforeExperimentMethods() argument 46 return benchmarkClass.beforeExperimentMethods(); in provideBeforeExperimentMethods() 52 BenchmarkClass benchmarkClass) { in provideAfterExperimentMethods() argument 53 return benchmarkClass.afterExperimentMethods(); in provideAfterExperimentMethods()
|
D | WorkerProcess.java | 82 BenchmarkClass benchmarkClass, in WorkerProcess() argument 86 buildProcess(trialId, experiment, benchmarkSpec, localPort, benchmarkClass); in WorkerProcess() 148 BenchmarkClass benchmarkClass) { in buildProcess() argument 166 args.addAll(getJvmArgs(vm, benchmarkClass)); in buildProcess() 185 BenchmarkClass benchmarkClass) { in getJvmArgs() argument 199 ImmutableSet<String> benchmarkJvmOptions = benchmarkClass.vmOptions(); in getJvmArgs() 201 logger.fine(String.format("Benchmark(%s) %s args: %s", benchmarkClass.name(), platformName, in getJvmArgs()
|
D | ExperimentingRunnerModule.java | 142 BenchmarkClass benchmarkClass, CaliperOptions options) throws InvalidBenchmarkException { in provideBenchmarkParameters() argument 143 return benchmarkClass.userParameters().fillInDefaultsFor(options.userParameters()); in provideBenchmarkParameters() 245 BenchmarkClass benchmarkClass, ImmutableSet<Instrument> instruments) in provideInstrumentations() argument 251 for (Method method : findAllBenchmarkMethods(benchmarkClass.benchmarkClass(), instrument)) { in provideInstrumentations() 265 private static ImmutableSortedSet<Method> findAllBenchmarkMethods(Class<?> benchmarkClass, in findAllBenchmarkMethods() argument 275 for (Method method : benchmarkClass.getDeclaredMethods()) { in findAllBenchmarkMethods() 288 benchmarkClass); in findAllBenchmarkMethods()
|
D | ExperimentingCaliperRun.java | 70 private final BenchmarkClass benchmarkClass; field in ExperimentingCaliperRun 81 BenchmarkClass benchmarkClass, in ExperimentingCaliperRun() argument 89 this.benchmarkClass = benchmarkClass; in ExperimentingCaliperRun() 127 benchmarkClass.benchmarkClass().getSimpleName(), instruments); in run() 269 benchmarkClass.setUpBenchmark(benchmark); in dryRun() 275 benchmarkClass.cleanup(benchmark); in dryRun()
|
D | OutputFileDumper.java | 62 BenchmarkClass benchmarkClass, in OutputFileDumper() argument 76 this.resultFile = new File(dir, createFileName(benchmarkClass.name())); in OutputFileDumper() 80 new File(new File(caliperDirectory, "results"), createFileName(benchmarkClass.name())); in OutputFileDumper()
|
D | BenchmarkClass.java | 122 @VisibleForTesting Class<?> benchmarkClass() { in benchmarkClass() method in BenchmarkClass 177 private static ImmutableSet<String> getVmOptions(Class<?> benchmarkClass) { in getVmOptions() argument 178 VmOptions annotation = benchmarkClass.getAnnotation(VmOptions.class); in getVmOptions()
|
D | ExperimentModule.java | 56 Class<?> benchmarkClass = Util.loadClass(spec.benchmarkSpec.className()); in forWorkerSpec() local 57 Method benchmarkMethod = findBenchmarkMethod(benchmarkClass, spec.benchmarkSpec.methodName(), in forWorkerSpec()
|
D | CaliperMain.java | 56 public static void main(Class<?> benchmarkClass, String[] args) { in main() argument 57 main(concat(args, benchmarkClass.getName())); in main()
|
/external/caliper/caliper/src/test/java/com/google/caliper/runner/ |
D | CaliperTestWatcher.java | 51 private Class<?> benchmarkClass; field in CaliperTestWatcher 54 CaliperTestWatcher forBenchmark(Class<?> benchmarkClass) { in forBenchmark() argument 55 this.benchmarkClass = benchmarkClass; in forBenchmark() 71 checkState(benchmarkClass != null, "You must configure a benchmark!"); in run() 83 options.add(benchmarkClass.getName()); in run()
|
D | MalformedBenchmarksTest.java | 163 private void expectException(String expectedMessageFmt, Class<?> benchmarkClass) in expectException() argument 167 new String[] {"--instrument=allocation,runtime", "--dry-run", benchmarkClass.getName()}, in expectException() 173 String.format(expectedMessageFmt, benchmarkClass.getSimpleName()); in expectException()
|
D | WorkerProcessTest.java | 68 private BenchmarkClass benchmarkClass; field in WorkerProcessTest 71 benchmarkClass = BenchmarkClass.forClass(TestBenchmark.class); in setUp() 165 benchmarkClass); in createProcess()
|
/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
D | AllAllocationsRecorder.java | 33 private final Class<?> benchmarkClass; field in AllAllocationsRecorder 60 if (element.getClassName().equals(benchmarkClass.getName()) 72 @Inject AllAllocationsRecorder(@Running.BenchmarkClass Class<?> benchmarkClass, in AllAllocationsRecorder() argument 74 this.benchmarkClass = benchmarkClass; in AllAllocationsRecorder()
|