Searched defs:benchmarkMethod (Results 1 - 11 of 11) sorted by relevance

/external/caliper/caliper/src/main/java/com/google/caliper/runner/
H A DBenchmarkMethods.java42 static Type of(Method benchmarkMethod) { argument
43 Class<?>[] parameterTypes = benchmarkMethod.getParameterTypes();
51 throw new IllegalArgumentException("invalid method parameters: " + benchmarkMethod);
H A DExperimentModule.java38 private final Method benchmarkMethod; field in class:ExperimentModule
41 Method benchmarkMethod,
44 this.benchmarkMethod = checkNotNull(benchmarkMethod);
48 Method benchmarkMethod = experiment.instrumentation().benchmarkMethod();
50 benchmarkMethod,
57 Method benchmarkMethod = findBenchmarkMethod(benchmarkClass, spec.benchmarkSpec.methodName(),
59 benchmarkMethod.setAccessible(true);
60 return new ExperimentModule(benchmarkMethod, spe
40 ExperimentModule( Method benchmarkMethod, ImmutableSortedMap<String, String> parameters) argument
[all...]
H A DAllocationInstrument.java71 public Instrumentation createInstrumentation(Method benchmarkMethod) argument
73 checkNotNull(benchmarkMethod);
74 checkArgument(isBenchmarkMethod(benchmarkMethod));
76 switch (BenchmarkMethods.Type.of(benchmarkMethod)) {
78 return new MacroAllocationInstrumentation(benchmarkMethod);
81 return new MicroAllocationInstrumentation(benchmarkMethod);
87 + "a single int or long parameter: %s", benchmarkMethod.getName());
92 MicroAllocationInstrumentation(Method benchmarkMethod) { argument
93 super(benchmarkMethod);
101 benchmarkMethod
133 MacroAllocationInstrumentation(Method benchmarkMethod) argument
[all...]
H A DArbitraryMeasurementInstrument.java52 public Instrumentation createInstrumentation(Method benchmarkMethod) argument
54 if (benchmarkMethod.getParameterTypes().length != 0) {
56 "Arbitrary measurement methods should take no parameters: " + benchmarkMethod.getName());
59 if (benchmarkMethod.getReturnType() != double.class) {
62 + benchmarkMethod.getName());
66 if (Util.isStatic(benchmarkMethod)) {
68 "Arbitrary measurement methods must not be static: " + benchmarkMethod.getName());
71 if (!Util.isPublic(benchmarkMethod)) {
73 "Arbitrary measurement methods must be public: " + benchmarkMethod.getName());
76 return new ArbitraryMeasurementInstrumentation(benchmarkMethod);
86 ArbitraryMeasurementInstrumentation(Method benchmarkMethod) argument
[all...]
H A DInstrument.java66 public abstract Instrumentation createInstrumentation(Method benchmarkMethod) argument
79 protected Method benchmarkMethod; field in class:Instrument.Instrumentation
81 protected Instrumentation(Method benchmarkMethod) { argument
82 this.benchmarkMethod = checkNotNull(benchmarkMethod);
89 Method benchmarkMethod() { method in class:Instrument.Instrumentation
90 return benchmarkMethod;
100 && this.benchmarkMethod.equals(that.benchmarkMethod);
107 return Objects.hashCode(Instrument.this, benchmarkMethod);
[all...]
H A DRuntimeInstrument.java95 public Instrumentation createInstrumentation(Method benchmarkMethod) argument
97 checkNotNull(benchmarkMethod);
98 checkArgument(isBenchmarkMethod(benchmarkMethod));
99 if (isStatic(benchmarkMethod)) {
101 benchmarkMethod.getName());
104 switch (BenchmarkMethods.Type.of(benchmarkMethod)) {
106 return new MacrobenchmarkInstrumentation(benchmarkMethod);
108 return new MicrobenchmarkInstrumentation(benchmarkMethod);
110 return new PicobenchmarkInstrumentation(benchmarkMethod);
116 + "a single int or long parameter: %s", benchmarkMethod
121 MacrobenchmarkInstrumentation(Method benchmarkMethod) argument
213 MicrobenchmarkInstrumentation(Method benchmarkMethod) argument
233 PicobenchmarkInstrumentation(Method benchmarkMethod) argument
[all...]
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
H A DWorker.java39 protected final Method benchmarkMethod; field in class:Worker
44 this.benchmarkMethod = method;
/external/caliper/caliper/src/test/java/com/google/caliper/runner/
H A DBenchmarkClassCheckerTest.java37 @Benchmark void benchmarkMethod() {} method in class:BenchmarkClassCheckerTest.BenchmarkAnnotatedMethod
H A DExperimentingRunnerModuleTest.java127 public Instrumentation createInstrumentation(Method benchmarkMethod) argument
129 return new Instrumentation(benchmarkMethod) {
H A DRuntimeInstrumentTest.java79 Method benchmarkMethod = RuntimeBenchmark.class.getDeclaredMethod("macrobenchmark");
80 Instrumentation instrumentation = instrument.createInstrumentation(benchmarkMethod);
81 assertEquals(benchmarkMethod, instrumentation.benchmarkMethod());
87 Method benchmarkMethod = RuntimeBenchmark.class.getDeclaredMethod("microbenchmark", int.class);
88 Instrumentation instrumentation = instrument.createInstrumentation(benchmarkMethod);
89 assertEquals(benchmarkMethod, instrumentation.benchmarkMethod());
95 Method benchmarkMethod = RuntimeBenchmark.class.getDeclaredMethod("picobenchmark", long.class);
96 Instrumentation instrumentation = instrument.createInstrumentation(benchmarkMethod);
218 int benchmarkMethod() { method in class:RuntimeInstrumentTest.BenchmarkThatAllocatesALot
[all...]
/external/conscrypt/benchmark-android/
H A Dvogar.jarMETA-INF/ META-INF/MANIFEST.MF vogar/ vogar/TestProperties.class TestProperties.java package vogar ...

Completed in 366 milliseconds