本文整理了Java中com.codahale.metrics.Snapshot.size()
方法的一些代码示例,展示了Snapshot.size()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Snapshot.size()
方法的具体详情如下:
包路径:com.codahale.metrics.Snapshot
类名称:Snapshot
方法名:size
[英]Returns the number of values in the snapshot.
[中]返回快照中的值数。
代码示例来源:origin: apache/flink
@Override
public int size() {
return snapshot.size();
}
代码示例来源:origin: kairosdb/kairosdb
snapshot.size()));
代码示例来源:origin: com.opentable.components/otj-metrics-core
@Override
public int size() {
return snap.size();
}
代码示例来源:origin: io.engineblock/eb-api
@Override
public int size() {
return snapshot.size();
}
代码示例来源:origin: com.alibaba.blink/flink-metrics-dropwizard
@Override
public int size() {
return snapshot.size();
}
代码示例来源:origin: com.kumuluz.ee.metrics/kumuluzee-metrics-core
@Override
public int size() {
return this.snapshot.size();
}
代码示例来源:origin: omero/common
public int size() {
return s.size();
}
代码示例来源:origin: io.engineblock/eb-api
@Override
public int size() {
// This appears to be infrequently called, so not keeping a separate counter just for this.
return getSnapshot().size();
}
代码示例来源:origin: HotelsDotCom/styx
@Override
public long getCount() {
return (long) getSnapshot().size();
}
}
代码示例来源:origin: io.dropwizard.metrics/metrics-jmx
@Override
public long getSnapshotSize() {
return metric.getSnapshot().size();
}
}
代码示例来源:origin: org.mpierce.metrics.reservoir/hdrhistogram-metrics-reservoir
@Override
public int size() {
// This appears to be infrequently called, so not keeping a separate counter just for this.
return getSnapshot().size();
}
代码示例来源:origin: com.hotels.styx/styx-api
@Override
public long getCount() {
return (long) getSnapshot().size();
}
}
代码示例来源:origin: com.hotels.styx/styx-api
@Override
public int size() {
return getSnapshot().size();
}
代码示例来源:origin: org.mpierce.metrics.reservoir/hdrhistogram-metrics-reservoir
@Override
public int size() {
// This appears to be infrequently called, so not keeping a separate counter just for this.
return getSnapshot().size();
}
代码示例来源:origin: co.paralleluniverse/quasar-core
@Override
public int size() {
return getSnapshot().size();
}
代码示例来源:origin: org.attribyte/essem-reporter
@Override
public int size() {
return getSnapshot().size();
}
代码示例来源:origin: HotelsDotCom/styx
@Override
public int size() {
return getSnapshot().size();
}
代码示例来源:origin: jboss-fuse/fabric8
/**
* average amount of time for a method multiplied by the number of times called
*
* @return estimated load
*/
public double getLoad() {
return timer.getSnapshot().size() * getMean();
}
代码示例来源:origin: uber/hudi
private Comparable[] printFileSizeHistogram(String commitTime, Snapshot s) {
return new Comparable[]{commitTime, s.getMin(),
s.getValue(0.1), s.getMedian(),
s.getMean(), s.get95thPercentile(),
s.getMax(), s.size(),
s.getStdDev()};
}
代码示例来源:origin: pravega/pravega
private void checkStatsRegisteredValues(int minExpectedValues, String...metricNames) {
for (String metricName: metricNames) {
Timer latencyValues = MetricRegistryUtils.getTimer(getTimerMetricName(metricName));
Assert.assertNotNull(latencyValues);
Assert.assertTrue(minExpectedValues <= latencyValues.getSnapshot().size());
}
}
内容来源于网络,如有侵权,请联系作者删除!