| 接口 | 说明 |
|---|---|
| ClusterHistogramBuilder<T> | |
| MetricBuilder<T extends Metric> | |
| ReservoirTypeBuilder<T> |
| 类 | 说明 |
|---|---|
| AbstractSnapshot |
A statistical snapshot of a
AbstractSnapshot. |
| AliMetricManager | |
| BucketCounterImpl |
Record the accurate number of events within each given time interval, one for each bucket.
|
| BucketReservoir | |
| BucketSnapshot | |
| ClusterHistogramImpl | |
| CompassImpl | |
| CounterImpl |
An incrementing and decrementing counter metric.
|
| EWMA |
An exponentially-weighted moving average.
|
| ExponentiallyDecayingReservoir |
An exponentially-decaying random reservoir of
longs. |
| FastCompassImpl |
通过1个LongAdder来同时完成count和rt的累加操作
Java里面1个Long有64个bit, 除去最高位表示符号的1个bit,还有63个bit可以使用
在一个不超过60s统计周期内,方法调用的总次数和总次数其实完全用不到63个bit
所以可以将这两个统计项放到一个long里面来表示
这里高位的25个bit表示统计周期内调用总次数,后38位表示总rt
Since the total number of method invocation and total time of method execution
within a collecting interval never exceed the range a LONG can represent,
we can use one LongAdder to record both the total count and total number
|
| HistogramImpl |
A metric which calculates the distribution of a value.
|
| LongAdder |
One or more variables that together maintain an initially zero
long sum. |
| ManualClock | |
| MeterImpl |
A meter metric which measures mean throughput and one-, five-, and fifteen-minute
exponentially-weighted moving average throughputs.
|
| MetricManagerBinder | |
| MetricRegistryImpl |
A registry of metric instances.
|
| SharedMetricRegistries |
A map of shared, named metric registries.
|
| SlidingTimeWindowReservoir |
A
Reservoir implementation backed by a sliding window that stores only the measurements made
in the last N seconds (or other time unit). |
| SlidingWindowReservoir |
A
Reservoir implementation backed by a sliding window that stores the last N
measurements. |
| TimerImpl |
A timer metric which aggregates timing durations and provides duration statistics, plus
throughput statistics via
Meter. |
| TimerImpl.ContextImpl |
A timing context.
|
| UniformReservoir |
A random sampling reservoir of a stream of
longs. |
| UniformSnapshot |
A statistical snapshot of a
UniformSnapshot. |
| WeightedSnapshot |
A statistical snapshot of a
WeightedSnapshot. |
| WeightedSnapshot.WeightedSample |
A single sample item with value and its weights for
WeightedSnapshot. |
Copyright © 2019. All rights reserved.