public interface PerformanceCounterFormula
Modifier and Type | Field and Description |
---|---|
static PerformanceCounterFormula |
AVERAGE_FORMULA
Average count formula calculates how many items are processed, on average, during an operation.
|
static PerformanceCounterFormula |
AVERAGE_TIMER_FORMULA
Average timer formulla calculates the time (in seconds) it takes, on average, to complete a process or operation.
|
static PerformanceCounterFormula |
RATE_FORMULA
Rate formula calculates (Xn - X0)/(Tn - T0), where Xi is a counter sample and Ti is the time that the corresponding
sample was taken.
|
static PerformanceCounterFormula |
SIMPLE_COUNT_FORMULA
Simple items count formula returning the counter raw value.
|
Modifier and Type | Method and Description |
---|---|
double |
calculateValue(PerformanceSample sample1,
PerformanceSample sample2)
Calculates next counter value by two samples.
|
static final PerformanceCounterFormula SIMPLE_COUNT_FORMULA
static final PerformanceCounterFormula AVERAGE_FORMULA
static final PerformanceCounterFormula RATE_FORMULA
static final PerformanceCounterFormula AVERAGE_TIMER_FORMULA
double calculateValue(PerformanceSample sample1, PerformanceSample sample2)
sample1
- sample1sample2
- sample2