Home
last modified time | relevance | path

Searched refs:instrument (Results 1 – 25 of 183) sorted by relevance

12345678

/external/caliper/caliper/src/test/java/com/google/caliper/runner/
DRuntimeInstrumentTest.java55 private RuntimeInstrument instrument; field in RuntimeInstrumentTest
58 this.instrument = new RuntimeInstrument(ShortDuration.of(100, NANOSECONDS)); in createInstrument()
67 return instrument.isBenchmarkMethod(input); in isBenchmarkMethod()
80 Instrumentation instrumentation = instrument.createInstrumentation(benchmarkMethod); in createInstrumentation_macrobenchmark()
82 assertEquals(instrument, instrumentation.instrument()); in createInstrumentation_macrobenchmark()
88 Instrumentation instrumentation = instrument.createInstrumentation(benchmarkMethod); in createInstrumentation_microbenchmark()
90 assertEquals(instrument, instrumentation.instrument()); in createInstrumentation_microbenchmark()
96 Instrumentation instrumentation = instrument.createInstrumentation(benchmarkMethod); in createInstrumentation_picobenchmark()
98 assertEquals(instrument, instrumentation.instrument()); in createInstrumentation_picobenchmark()
106 instrument.createInstrumentation(benchmarkMethod); in createInstrumentation_badParam()
[all …]
DCaliperTestWatcher.java50 private String instrument; field in CaliperTestWatcher
59 CaliperTestWatcher instrument(String instrument) { in instrument() argument
60 this.instrument = instrument; in instrument()
78 if (instrument != null) { in run()
80 options.add(instrument); in run()
DAllocationInstrumentTest.java50 AllocationInstrument instrument = new AllocationInstrument(); in getExtraCommandLineArgs() local
53 instrument.setOptions(ImmutableMap.of("allocationAgentJar", fakeJar.getAbsolutePath())); in getExtraCommandLineArgs()
64 assertEquals(expected, instrument.getExtraCommandLineArgs(vmConfig)); in getExtraCommandLineArgs()
71 .instrument("allocation") in intrinsics()
DBadUserCodeTest.java138 .instrument("allocation") in testNonDeterministicAllocation_noTrackAllocations()
154 .instrument("allocation") in testNonDeterministicAllocation_trackAllocations()
185 .instrument("allocation") in testComplexNonDeterministicAllocation_noTrackAllocations()
195 .instrument("allocation") in testComplexNonDeterministicAllocation_trackAllocations()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/validation/
DCyclomaticComplexityTest.java73 instrument(Simple.class); in testSimple1()
80 instrument(Simple.class); in testSimple2()
96 instrument(If.class); in testIf1()
103 instrument(If.class); in testIf2()
111 instrument(If.class); in testIf3()
131 instrument(TwoIf.class); in testTwoIf1()
138 instrument(TwoIf.class); in testTwoIf2()
146 instrument(TwoIf.class); in testTwoIf3()
155 instrument(TwoIf.class); in testTwoIf4()
175 instrument(NestedIf.class); in testNestedIf1()
[all …]
/external/devlib/devlib/
D__init__.py12 from devlib.instrument import Instrument, InstrumentChannel, Measurement, MeasurementsCsv
13 from devlib.instrument import MEASUREMENT_TYPES, INSTANTANEOUS, CONTINUOUS
14 from devlib.instrument.daq import DaqInstrument
15 from devlib.instrument.energy_probe import EnergyProbeInstrument
16 from devlib.instrument.frames import GfxInfoFramesInstrument
17 from devlib.instrument.hwmon import HwmonInstrument
18 from devlib.instrument.monsoon import MonsoonInstrument
19 from devlib.instrument.netstats import NetstatsInstrument
/external/caliper/caliper/src/main/resources/com/google/caliper/config/
Dglobal-config.properties33 # To define new instrument configurations, provide an "instrument.<name>.class" property
35 # whichever other options it supports using "instrument.<name>.<optionName>=<value>".
38 instrument.runtime.class=com.google.caliper.runner.RuntimeInstrument
41 instrument.runtime.options.warmup=10s
46 instrument.runtime.options.maxWarmupWallTime=10m
50 instrument.runtime.options.timingInterval=500ms
53 instrument.runtime.options.measurements=9
56 instrument.runtime.options.gcBeforeEach=true
61 instrument.runtime.options.suggestGranularity=true
64 instrument.arbitrary.class=com.google.caliper.runner.ArbitraryMeasurementInstrument
[all …]
Ddefault-config.properties5 # instrument.micro.options.warmup=10s
6 # instrument.micro.options.timingInterval=500ms
7 # instrument.micro.options.reportedIntervals=7
8 # instrument.micro.options.maxRuntime=10s
/external/jacoco/org.jacoco.core/src/org/jacoco/core/instr/
DInstrumenter.java78 public byte[] instrument(final ClassReader reader) { in instrument() method in Instrumenter
105 public byte[] instrument(final byte[] buffer, final String name) in instrument() method in Instrumenter
109 final byte[] result = instrument( in instrument()
114 return instrument(new ClassReader(buffer)); in instrument()
133 public byte[] instrument(final InputStream input, final String name) in instrument() method in Instrumenter
141 return instrument(bytes, name); in instrument()
157 public void instrument(final InputStream input, final OutputStream output, in instrument() method in Instrumenter
159 output.write(instrument(input, name)); in instrument()
196 instrument(detector.getInputStream(), output, name); in instrumentAll()
/external/devlib/doc/
Dinstrumentation.rst13 The following example shows how to use an instrument to read temperature from an
18 # import and instantiate the Target and the instrument
27 # Set up the instrument on the Target. In case of HWMON, this is
31 # Find out what the instrument is capable collecting from the
42 # HWMON instrument supports INSTANTANEOUS collection, so invoking
63 instrument. Possible values are:
65 :INSTANTANEOUS: The instrument supports taking a single sample via
67 :CONTINUOUS: The instrument supports collecting measurements over a
71 .. note:: It's possible for one instrument to support more than a single
82 this instrument can measure on the current target. A channel is a combination
[all …]
/external/jacoco/org.jacoco.core/src/org/jacoco/core/runtime/
DModifiedSystemClassRuntime.java16 import java.lang.instrument.ClassFileTransformer;
17 import java.lang.instrument.IllegalClassFormatException;
18 import java.lang.instrument.Instrumentation;
129 return instrument(source, accessFieldName); in createFor()
155 public static byte[] instrument(final byte[] source, in instrument() method in ModifiedSystemClassRuntime
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DExperimentingRunnerModule.java208 Instrument instrument = instrumentProvider.get(); in provideInstruments() local
214 instrumentComponent.injectInstrument(instrument); in provideInstruments()
215 builder.add(instrument); in provideInstruments()
242 for (Instrument instrument : instruments) { in provideInstrumentations()
243 for (Method method : findAllBenchmarkMethods(benchmarkClass.benchmarkClass(), instrument)) { in provideInstrumentations()
245 builder.add(instrument.createInstrumentation(method)); in provideInstrumentations()
258 Instrument instrument) throws InvalidBenchmarkException { in findAllBenchmarkMethods() argument
268 if (instrument.isBenchmarkMethod(method)) { in findAllBenchmarkMethods()
DWorkerProcess.java151 Instrument instrument = instrumentation.instrument(); in buildProcess() local
168 Iterable<String> instrumentJvmOptions = instrument.getExtraCommandLineArgs(vmConfig); in buildProcess()
169 logger.fine(String.format("Instrument(%s) Java args: %s", instrument.getClass().getName(), in buildProcess()
DBenchmarkClassChecker.java77 for (Instrument instrument : instruments) { in isBenchmark()
78 if (instrument.isBenchmarkMethod(method)) { in isBenchmark()
/external/compiler-rt/test/profile/
Dinstrprof-icall-promo.test1 RUN: %clangxx_profgen -O2 -Xclang -fprofile-instrument=llvm -c -o %t.1.o %S/Inputs/instrprof-icall…
2 RUN: %clangxx_profgen -O2 -Xclang -fprofile-instrument=llvm -c -o %t.2.o %S/Inputs/instrprof-icall…
4 RUN: %clangxx_profgen -O2 -Xclang -fprofile-instrument=llvm %t.2.o %t.1.o -o %t.gen.1
9 RUN: %clangxx_profgen -O2 -Xclang -fprofile-instrument=llvm %t.1.o %t.2.o -o %t.gen.2
Dinstrprof-value-prof-shared.test10 // RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -mllvm -vp-st…
11 // RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -mllvm -vp-s…
20 // RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -mllvm -vp-st…
21 // RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -mllvm -vp-s…
30 // RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -mllvm -vp-st…
31 // RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -mllvm -vp-s…
/external/llvm/lib/Transforms/Instrumentation/
DBoundsChecking.cpp64 bool instrument(Value *Ptr, Value *Val, const DataLayout &DL);
126 bool BoundsChecking::instrument(Value *Ptr, Value *InstVal, in instrument() function in BoundsChecking
193 MadeChange |= instrument(LI->getPointerOperand(), LI, DL); in runOnFunction()
196 instrument(SI->getPointerOperand(), SI->getValueOperand(), DL); in runOnFunction()
199 instrument(AI->getPointerOperand(), AI->getCompareOperand(), DL); in runOnFunction()
202 instrument(AI->getPointerOperand(), AI->getValOperand(), DL); in runOnFunction()
/external/jacoco/org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/
DCoverageTransformer.java14 import java.lang.instrument.ClassFileTransformer;
15 import java.lang.instrument.IllegalClassFormatException;
91 return instrumenter.instrument(classfileBuffer, classname); in transform()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/perf/
DInstrumentationSizeSzenario.java36 instr.instrument(reader); in run()
38 instr.instrument(reader).length, reader.b.length); in run()
/external/compiler-rt/test/profile/Linux/
Dinstrprof-alloc.test1 // RUN: %clang_profgen -Xclang -fprofile-instrument=llvm -fuse-ld=gold -Wl,-wrap,malloc -Wl,-wrap,…
4 // RUN: %clang_profgen -Xclang -fprofile-instrument=llvm -mllvm -vp-static-alloc=false -fuse-ld=go…
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/instr/
DInstrumenterTest.java87 byte[] bytes = instrumenter.instrument( in testInstrumentClass()
104 instrumenter.instrument(brokenclass, "Broken.class"); in testInstrumentBrokenClass1()
126 instrumenter.instrument(new BrokenInputStream(), "BrokenStream"); in testInstrumentBrokenStream()
141 instrumenter.instrument(new BrokenInputStream(), in testInstrumentBrokenStream2()
153 byte[] bytes = instrumenter.instrument( in testSerialization()
/external/valgrind/drd/
Ddrd_load_store.c591 IRSB* DRD_(instrument)(VgCallbackClosure* const closure, in DRD_() argument
603 Bool instrument = True; in DRD_() local
627 instrument = VG_(DebugInfo_sect_kind)(NULL, st->Ist.IMark.addr) in DRD_()
646 if (instrument) in DRD_()
656 if (instrument) in DRD_()
680 if (instrument) { in DRD_()
697 if (instrument) { in DRD_()
735 if (instrument) { in DRD_()
772 if (instrument) { in DRD_()
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DInlineBytecodeGenerator.java31 import java.lang.instrument.ClassFileTransformer;
32 import java.lang.instrument.IllegalClassFormatException;
33 import java.lang.instrument.Instrumentation;
34 import java.lang.instrument.UnmodifiableClassException;
/external/javassist/sample/evolve/
DEvolution.java57 clazz.instrument(converter); in onLoad()
183 cs[i].instrument(converter); in makeConcreteClass()
187 ms[i].instrument(converter); in makeConcreteClass()
/external/llvm/test/Instrumentation/AddressSanitizer/
Dinstrument-dynamic-allocas.ll2 ; -asan-instrument-allocas=1
4 ; RUN: opt < %s -asan -asan-module -asan-instrument-allocas=1 -S | FileCheck %s --check-prefix=CHEC…

12345678