/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/metrics/ |
Meter.java | 20 import io.opencensus.metrics.export.Metric; 25 * Provides a {@link io.opencensus.metrics.export.Metric} with one or more {@link 29 * @throws NullPointerException if {@code TimeSeries} is not present in {@code Metric}. 30 * @return a {@code Metric}. 33 Metric getMetric(Clock clock);
|
MetricRegistryImpl.java | 29 import io.opencensus.metrics.export.Metric; 120 "A different metric with the same name already registered."); 139 public Collection<Metric> getMetrics() { 146 List<Metric> metrics = new ArrayList<Metric>(meters.size()); 148 Metric metric = entry.getValue().getMetric(clock); local 149 if (metric != null) { 150 metrics.add(metric);
|
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/ |
PerfStatsReporter.java | 5 import org.robolectric.util.PerfStatsCollector.Metric; 15 void report(Metadata metadata, Collection<Metric> metrics);
|
PerfStatsCollector.java | 19 private final Map<MetricKey, Metric> metricMap = new HashMap<>(); 89 public synchronized Collection<Metric> getMetrics() { 133 Metric metric = metricMap.get(key); local 134 if (metric == null) { 135 metricMap.put(key, metric = new Metric(key.name, key.success)); 137 metric.count++; 138 metric.elapsedNs += clock.nanoTime() - startTimeNs; 144 * Metric for perf stats collection 188 Metric metric = (Metric) o; local [all...] |
/external/robolectric-shadows/utils/src/test/java/org/robolectric/util/ |
PerfStatsCollectorTest.java | 13 import org.robolectric.util.PerfStatsCollector.Metric; 33 Collection<Metric> metrics = collector.getMetrics(); 35 new Metric("first event", 1, 20, true) 53 Collection<Metric> metrics = collector.getMetrics(); 55 new Metric("repeatable event", 3, 60, true) 66 Collection<Metric> metrics = collector.getMetrics(); 67 assertThat(metrics).containsExactly(new Metric("event", 1, 10, true)); 87 Collection<Metric> metrics = collector.getMetrics(); 89 new Metric("event", 1, 10, true), 90 new Metric("event", 1, 5, false)) [all...] |
/external/opencensus-java/api/src/main/java/io/opencensus/metrics/export/ |
MetricProducer.java | 23 * A {@link Metric} producer that can be registered for exporting using {@link 34 * Returns a collection of produced {@link Metric}s to be exported. 36 * @return a collection of produced {@link Metric}s to be exported. 39 public abstract Collection<Metric> getMetrics();
|
Metric.java | 32 * A {@link Metric} with one or more {@link TimeSeries}. 39 public abstract class Metric { 41 Metric() {} 44 * Creates a {@link Metric}. 47 * @param timeSeriesList the {@link TimeSeries} list for this metric. 48 * @return a {@code Metric}. 51 public static Metric create(MetricDescriptor metricDescriptor, List<TimeSeries> timeSeriesList) { 59 * Creates a {@link Metric}. 62 * @param timeSeries the single {@link TimeSeries} for this metric. 63 * @return a {@code Metric} [all...] |
/external/opencensus-java/contrib/dropwizard/src/main/java/io/opencensus/contrib/dropwizard/ |
DropWizardUtils.java | 19 import com.codahale.metrics.Metric; 21 /** Util methods for generating the metric name(unique) and description. */ 27 * Returns the metric name. 29 * @param name the initial metric name 30 * @param type the initial type of the metric. 31 * @return a string the unique metric name 38 * Returns the metric description. 40 * @param metricName the initial metric name 41 * @param metric the codahale metric class [all...] |
DropWizardMetrics.java | 31 import io.opencensus.metrics.export.Metric; 77 * Returns a {@code Metric} collected from {@link Gauge}. 79 * @param dropwizardName the metric name. 81 * @return a {@code Metric}. 84 private @Nullable Metric collectGauge(String dropwizardName, Gauge gauge) { 110 return Metric.createWithOneTimeSeries(metricDescriptor, timeSeries); 114 * Returns a {@code Metric} collected from {@link Counter}. 116 * @param dropwizardName the metric name. 118 * @return a {@code Metric}. 120 private Metric collectCounter(String dropwizardName, Counter counter) 248 Metric metric = collectGauge(gaugeEntry.getKey(), gaugeEntry.getValue()); local [all...] |
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/ |
MetricProducerImpl.java | 19 import io.opencensus.metrics.export.Metric; 35 public Collection<Metric> getMetrics() {
|
MeasureToViewMap.java | 26 import io.opencensus.metrics.export.Metric; 165 synchronized List<Metric> getMetrics(Clock clock, State state) { 166 List<Metric> metrics = new ArrayList<Metric>(); 169 Metric metric = entry.getValue().toMetric(now, state); local 170 if (metric != null) { 171 metrics.add(metric);
|
/external/grpc-grpc/src/cpp/util/ |
core_stats.cc | 25 using grpc::core::Metric; 32 Metric* m = proto->add_metrics(); 37 Metric* m = proto->add_metrics(); 52 case Metric::VALUE_NOT_SET: 54 case Metric::kCount: 62 case Metric::kHistogram:
|
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/ |
MetricTest.java | 36 /** Unit tests for {@link Metric}. */ 44 private static final String DESCRIPTION = "Metric description."; 84 Metric metric = local 85 Metric.create(METRIC_DESCRIPTOR_1, Arrays.asList(GAUGE_TIME_SERIES_1, GAUGE_TIME_SERIES_2)); 86 assertThat(metric.getMetricDescriptor()).isEqualTo(METRIC_DESCRIPTOR_1); 87 assertThat(metric.getTimeSeriesList()) 112 Metric.create(metricDescriptor, timeSeriesList); 119 Metric.create(null, Collections.<TimeSeries>emptyList()); 126 Metric.create(METRIC_DESCRIPTOR_1, null) 140 Metric metric = Metric.create(METRIC_DESCRIPTOR_1, timeSeriesList); local 161 Metric metric = Metric.createWithOneTimeSeries(METRIC_DESCRIPTOR_1, GAUGE_TIME_SERIES_1); local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/performance/ |
CameraTestInstrumentation.java | 27 import com.android.compatibility.common.util.ReportLog.Metric; 43 public void onResultMetric(Metric metric); 84 Metric metric = report.getSummary(); local 85 if (metric == null) { 86 Log.v(TAG, "Empty metric"); 89 String message = metric.getMessage(); 90 double[] values = metric.getValues(); 91 String source = metric.getSource() [all...] |
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
statistics_calculator.h | 105 virtual int Metric() const = 0; 123 int Metric() const override; 139 int Metric() const override;
|
statistics_calculator.cc | 46 LogToUma(Metric()); 65 LogToUma(Metric()); 72 int StatisticsCalculator::PeriodicUmaCount::Metric() const { 89 LogToUma(Metric()); 97 int StatisticsCalculator::PeriodicUmaAverage::Metric() const {
|
/external/autotest/client/common_lib/cros/ |
system_metrics_collector.py | 1 class Metric(object): 8 Initializes a Metric. 9 @param description: Description of the metric, e.g., used as label on a 11 @param units: Units of the metric, e.g. percent, seconds, MB. 22 """Description of the metric.""" 27 """Units of the metric.""" 37 """Measured values of the metric.""" 48 Subclasses can override this to aggregate the metric into a single 74 Instantiate from an existing metric instance. 76 metric = cls [all...] |
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/metrics/ |
DerivedLongGaugeImplTest.java | 25 import io.opencensus.metrics.export.Metric; 137 Metric metric = derivedLongGauge.getMetric(testClock); local 138 assertThat(metric).isNotNull(); 139 assertThat(metric) 141 Metric.createWithOneTimeSeries( 151 Metric metric = derivedLongGauge.getMetric(testClock); local 152 assertThat(metric).isNotNull(); 153 assertThat(metric) 164 Metric metric = derivedLongGauge.getMetric(testClock); local 193 Metric metric = derivedLongGauge.getMetric(testClock); local 211 Metric metric = derivedLongGauge.getMetric(testClock); local [all...] |
MetricRegistryImplTest.java | 32 import io.opencensus.metrics.export.Metric; 241 Collection<Metric> metricCollections = metricRegistry.getMetricProducer().getMetrics(); 245 Metric.createWithOneTimeSeries( 255 Collection<Metric> metricCollections = metricRegistry.getMetricProducer().getMetrics(); 259 Metric.createWithOneTimeSeries( 270 Collection<Metric> metricCollections = metricRegistry.getMetricProducer().getMetrics(); 274 Metric.createWithOneTimeSeries( 285 Collection<Metric> metricCollections = metricRegistry.getMetricProducer().getMetrics(); 289 Metric.createWithOneTimeSeries( 327 Collection<Metric> metricCollections = metricRegistry.getMetricProducer().getMetrics() [all...] |
DerivedDoubleGaugeImplTest.java | 25 import io.opencensus.metrics.export.Metric; 132 Metric metric = derivedDoubleGauge.getMetric(testClock); local 133 assertThat(metric).isNotNull(); 134 assertThat(metric) 136 Metric.createWithOneTimeSeries( 153 Metric metric = derivedDoubleGauge.getMetric(testClock); local 154 assertThat(metric).isNotNull(); 155 assertThat(metric) 166 Metric metric = derivedDoubleGauge.getMetric(testClock); local 192 Metric metric = derivedDoubleGauge.getMetric(testClock); local 209 Metric metric = derivedDoubleGauge.getMetric(testClock); local [all...] |
DoubleGaugeImplTest.java | 27 import io.opencensus.metrics.export.Metric; 106 Metric metric = doubleGauge.getMetric(testClock); local 107 assertThat(metric).isNotNull(); 108 assertThat(metric) 110 Metric.create( 124 Metric metric = doubleGauge.getMetric(testClock); local 125 assertThat(metric).isNotNull(); 126 assertThat(metric.getMetricDescriptor()).isEqualTo(METRIC_DESCRIPTOR) 145 Metric metric = doubleGauge.getMetric(testClock); local 188 Metric metric = doubleGauge.getMetric(testClock); local 206 Metric metric = doubleGauge.getMetric(testClock); local 244 Metric metric = doubleGauge.getMetric(testClock); local [all...] |
LongGaugeImplTest.java | 27 import io.opencensus.metrics.export.Metric; 106 Metric metric = longGaugeMetric.getMetric(testClock); local 107 assertThat(metric).isNotNull(); 108 assertThat(metric) 110 Metric.createWithOneTimeSeries( 123 Metric metric = longGaugeMetric.getMetric(testClock); local 124 assertThat(metric).isNotNull(); 125 assertThat(metric.getMetricDescriptor()).isEqualTo(METRIC_DESCRIPTOR) 144 Metric metric = longGaugeMetric.getMetric(testClock); local 183 Metric metric = longGaugeMetric.getMetric(testClock); local 201 Metric metric = longGauge.getMetric(testClock); local 239 Metric metric = longGaugeMetric.getMetric(testClock); local [all...] |
/external/grpc-grpc/src/php/tests/qps/generated_code/Grpc/Core/ |
Stats.php | 17 * Generated from protobuf field <code>repeated .grpc.core.Metric metrics = 1;</code> 27 * Generated from protobuf field <code>repeated .grpc.core.Metric metrics = 1;</code> 36 * Generated from protobuf field <code>repeated .grpc.core.Metric metrics = 1;</code> 37 * @param \Grpc\Core\Metric[]|\Google\Protobuf\Internal\RepeatedField $var 42 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Core\Metric::class);
|
/external/grpc-grpc/src/ruby/qps/src/proto/grpc/core/ |
stats_pb.rb | 14 add_message "grpc.core.Metric" do 22 repeated :metrics, :message, 1, "grpc.core.Metric" 30 Metric = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.core.Metric").msgclass
|
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ |
ReportProcessor.java | 22 import com.android.tradefed.metrics.proto.MetricMeasurement.Metric; 127 public void testEnded(TestDescription test, HashMap<String, Metric> metrics) { 128 for (Entry<String, Metric> e: metrics.entrySet()) {
|