Home
last modified time | relevance | path

Searched refs:Measurement (Results 1 – 25 of 155) sorted by relevance

1234567

/external/caliper/caliper/src/main/java/com/google/caliper/model/
DMeasurement.java35 public class Measurement implements Serializable { class
38 public static ImmutableListMultimap<String, Measurement> indexByDescription( in indexByDescription()
39 Iterable<Measurement> measurements) { in indexByDescription()
40 return Multimaps.index(measurements, new Function<Measurement, String>() { in indexByDescription()
41 @Override public String apply(Measurement input) { in indexByDescription()
53 private Measurement() {
59 private Measurement(Builder builder) {
68 } else if (obj instanceof Measurement) {
69 Measurement that = (Measurement) obj;
123 public Measurement build() {
[all …]
DTrial.java43 private List<Measurement> measurements;
77 public ImmutableList<Measurement> measurements() { in measurements()
115 private final List<Measurement> measurements = Lists.newArrayList();
148 public Builder addMeasurement(Measurement.Builder measurementBuilder) { in addMeasurement()
152 public Builder addMeasurement(Measurement measurement) { in addMeasurement()
157 public Builder addAllMeasurements(Iterable<Measurement> measurements) { in addAllMeasurements()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
DMeasureMapInternal.java22 import io.opencensus.stats.Measurement;
43 Iterator<Measurement> iterator() { in iterator()
52 private final ArrayList<Measurement> measurements;
55 private MeasureMapInternal(ArrayList<Measurement> measurements, Map<String, String> attachments) { in MeasureMapInternal()
71 measurements.add(Measurement.MeasurementDouble.create(measure, value)); in put()
84 measurements.add(Measurement.MeasurementLong.create(measure, value)); in put()
109 private final ArrayList<Measurement> measurements = new ArrayList<Measurement>();
116 private final class MeasureMapInternalIterator implements Iterator<Measurement> {
123 public Measurement next() { in next()
DRecordUtils.java40 import io.opencensus.stats.Measurement;
41 import io.opencensus.stats.Measurement.MeasurementDouble;
42 import io.opencensus.stats.Measurement.MeasurementLong;
139 static double getDoubleValueFromMeasurement(Measurement measurement) {
/external/opencensus-java/api/src/main/java/io/opencensus/stats/
DMeasurement.java31 public abstract class Measurement { class
41 Function<? super Measurement, T> defaultFunction); in match() argument
51 private Measurement() {} in Measurement() method in Measurement
60 public abstract static class MeasurementDouble extends Measurement {
87 Function<? super Measurement, T> defaultFunction) { in match() argument
99 public abstract static class MeasurementLong extends Measurement {
126 Function<? super Measurement, T> defaultFunction) { in match() argument
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DConsoleOutput.java21 import com.google.caliper.model.Measurement;
95 ImmutableListMultimap<String, Measurement> measurementsIndex = in processTrial()
96 new ImmutableListMultimap.Builder<String, Measurement>() in processTrial()
98 .putAll(Multimaps.index(trial.measurements(), new Function<Measurement, String>() { in processTrial()
99 @Override public String apply(Measurement input) { in processTrial()
105 for (Entry<String, Collection<Measurement>> entry : measurementsIndex.asMap().entrySet()) { in processTrial()
106 Collection<Measurement> measurements = entry.getValue(); in processTrial()
108 .transform(new Function<Measurement, String>() { in processTrial()
109 @Override public String apply(Measurement input) { in processTrial()
115 for (Measurement measurement : measurements) { in processTrial()
DInstrument.java27 import com.google.caliper.model.Measurement;
165 ImmutableList<Measurement> getMeasurements(); in getMeasurements()
186 final ListMultimap<String, Measurement> measurementsByDescription;
204 for (Measurement measurement : logMessage.measurements()) { in visit()
223 @Override public ImmutableList<Measurement> getMeasurements() { in getMeasurements()
DRuntimeInstrument.java40 import com.google.caliper.model.Measurement;
247 final List<Measurement> measurements = Lists.newArrayList();
308 ImmutableList<Measurement> newMeasurements = logMessage.measurements(); in visit()
310 for (Measurement measurement : newMeasurements) { in visit()
336 abstract void validateMeasurement(Measurement measurement); in validateMeasurement()
339 public ImmutableList<Measurement> getMeasurements() { in getMeasurements()
405 void validateMeasurement(Measurement measurement) { in validateMeasurement()
455 void validateMeasurement(Measurement measurement) { in validateMeasurement()
DArbitraryMeasurementInstrument.java26 import com.google.caliper.model.Measurement;
125 Optional<Measurement> measurement = Optional.absent();
138 public ImmutableList<Measurement> getMeasurements() { in getMeasurements()
/external/caliper/caliper/src/main/java/com/google/caliper/bridge/
DStopMeasurementLogMessage.java19 import com.google.caliper.model.Measurement;
31 private final ImmutableList<Measurement> measurements;
33 public StopMeasurementLogMessage(Iterable<Measurement> measurements) { in StopMeasurementLogMessage()
37 public ImmutableList<Measurement> measurements() { in measurements()
/external/caliper/caliper/src/test/java/com/google/caliper/runner/
DArbitraryMeasurmentInstrumentTest.java22 import com.google.caliper.model.Measurement;
44 Measurement measurement = Iterables.getOnlyElement( in testSuccess()
46 Measurement expected = new Measurement.Builder() in testSuccess()
DAllocationInstrumentTest.java22 import com.google.caliper.model.Measurement;
74 ImmutableListMultimap<String, Measurement> measurementsByDescription = in intrinsics()
75 Measurement.indexByDescription(trial.measurements()); in intrinsics()
78 for (Measurement objectMeasurement : measurementsByDescription.get("objects")) { in intrinsics()
81 for (Measurement byteMeasurement : measurementsByDescription.get("bytes")) { in intrinsics()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
DMeasureMapInternalTest.java25 import io.opencensus.stats.Measurement;
26 import io.opencensus.stats.Measurement.MeasurementDouble;
27 import io.opencensus.stats.Measurement.MeasurementLong;
86 ArrayList<Measurement> expected = new ArrayList<Measurement>(10); in testBuilder()
91 assertContains(builder.build(), expected.toArray(new Measurement[i])); in testBuilder()
156 private static void assertContains(MeasureMapInternal metrics, Measurement... measurements) { in assertContains()
/external/llvm-project/libc/benchmarks/
DLibcMemoryBenchmarkMain.cpp70 Measurement Measurement; in Main() local
71 Measurement.Runtime = Result.BestGuess; in Main()
72 Measurement.Size = Size; in Main()
73 FM.Measurements.push_back(Measurement); in Main()
DJSONTest.cpp34 {Measurement{3, std::chrono::seconds(3)}, in getStudy()
35 Measurement{3, std::chrono::seconds(4)}}}, in getStudy()
93 const Measurement &A = ::testing::get<0>(arg);
94 const Measurement &B = ::testing::get<1>(arg);
95 return ExplainMatchResult(AllOf(Field(&Measurement::Size, B.Size),
96 Field(&Measurement::Runtime, B.Runtime)),
/external/rust/crates/criterion/src/
Dbenchmark.rs5 use crate::measurement::{Measurement, WallTime};
75 pub(crate) struct NamedRoutine<T, M: Measurement = WallTime> {
84 pub struct ParameterizedBenchmark<T: Debug, M: Measurement = WallTime> {
95 pub struct Benchmark<M: Measurement = WallTime> {
104 pub trait BenchmarkDefinition<M: Measurement = WallTime>: Sized {
256 M: Measurement + 'static,
316 impl<M: Measurement> BenchmarkDefinition<M> for Benchmark<M> {
390 M: Measurement + 'static,
476 M: Measurement + 'static,
570 M: Measurement, in execute_benchmark() argument
Droutine.rs3 use crate::measurement::Measurement;
10 pub(crate) trait Routine<M: Measurement, T: ?Sized> {
165 pub struct Function<M: Measurement, F, T>
175 impl<M: Measurement, F, T> Function<M, F, T>
189 impl<M: Measurement, F, T> Routine<M, T> for Function<M, F, T>
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DArbitraryMeasurementWorker.java20 import com.google.caliper.model.Measurement;
57 @Override public Iterable<Measurement> measure() throws Exception { in measure()
59 return ImmutableSet.of(new Measurement.Builder() in measure()
DRuntimeWorker.java21 import com.google.caliper.model.Measurement;
74 @Override public Iterable<Measurement> measure() throws Exception { in measure()
76 Measurement measurement = new Measurement.Builder() in measure()
DMacrobenchmarkWorker.java24 import com.google.caliper.model.Measurement;
67 @Override public Iterable<Measurement> measure() throws Exception { in measure()
72 return ImmutableSet.of(new Measurement.Builder() in measure()
DAllocationStats.java20 import com.google.caliper.model.Measurement;
128 ImmutableList<Measurement> toMeasurements() { in toMeasurements()
134 new Measurement.Builder() in toMeasurements()
139 new Measurement.Builder() in toMeasurements()
DMacrobenchmarkAllocationWorker.java19 import com.google.caliper.model.Measurement;
47 @Override public ImmutableList<Measurement> measure() throws Exception { in measure()
DWorker.java18 import com.google.caliper.model.Measurement;
69 public abstract Iterable<Measurement> measure() throws Exception; in measure()
/external/llvm-project/llvm/tools/llvm-exegesis/lib/
DAnalysis.cpp147 for (const auto &Measurement : Point.Measurements) { in printInstructionRowCsv() local
149 writeMeasurementValue<kEscapeCsv>(OS, Measurement.PerInstructionValue); in printInstructionRowCsv()
191 for (const auto &Measurement : Clustering_.getPoints().front().Measurements) { in run() local
193 writeEscaped<kEscapeCsv>(OS, Measurement.Key); in run()
302 for (const auto &Measurement : in printSchedClassClustersHtml() local
305 writeEscaped<kEscapeHtml>(OS, Measurement.Key); in printSchedClassClustersHtml()
444 for (const auto &Measurement : Points[Cluster.PointIndices[0]].Measurements) { in printClusterRawHtml() local
446 writeEscaped<kEscapeHtml>(OS, Measurement.Key); in printClusterRawHtml()
456 for (const auto &Measurement : Points[PointId].Measurements) { in printClusterRawHtml() local
458 writeMeasurementValue<kEscapeHtml>(OS, Measurement.PerInstructionValue); in printClusterRawHtml()
DBenchmarkRunner.cpp244 BenchmarkMeasure &Measurement = std::get<0>(I); in runConfiguration() local
246 assert(Measurement.Key == NewMeasurement.Key && in runConfiguration()
249 Measurement.PerInstructionValue = std::min( in runConfiguration()
250 Measurement.PerInstructionValue, NewMeasurement.PerInstructionValue); in runConfiguration()
251 Measurement.PerSnippetValue = in runConfiguration()
252 std::min(Measurement.PerSnippetValue, NewMeasurement.PerSnippetValue); in runConfiguration()

1234567