Package one.nio.os.perf
Class LocalValue
- java.lang.Object
-
- one.nio.os.perf.LocalValue
-
- All Implemented Interfaces:
CounterValue
public class LocalValue extends Object implements CounterValue
-
-
Field Summary
Fields Modifier and Type Field Description longenabledlongrunninglongvaluestatic LocalValueZERO
-
Constructor Summary
Constructors Constructor Description LocalValue(long value, long running, long enabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longnormalized()doublerunningFraction()doublescalingFactor()CounterValuesub(CounterValue prev)LocalValuesub(LocalValue v)
-
-
-
Field Detail
-
ZERO
public static final LocalValue ZERO
-
value
public final long value
-
running
public final long running
-
enabled
public final long enabled
-
-
Method Detail
-
scalingFactor
public double scalingFactor()
- Specified by:
scalingFactorin interfaceCounterValue
-
runningFraction
public double runningFraction()
- Specified by:
runningFractionin interfaceCounterValue
-
normalized
public long normalized()
- Specified by:
normalizedin interfaceCounterValue
-
sub
public CounterValue sub(CounterValue prev)
- Specified by:
subin interfaceCounterValue
-
sub
public LocalValue sub(LocalValue v)
-
-