Class PerformanceStatistic
java.lang.Object
zombie.network.statistics.data.Statistic
zombie.network.statistics.data.PerformanceStatistic
- All Implemented Interfaces:
IStatistic
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Counterfinal Counterfinal Counterfinal Counterfinal Counterfinal Counterfinal Counterfinal Counterfinal Counterfinal Counterfinal CounterFields inherited from class Statistic
counters, prometheus, statistics -
Method Summary
Modifier and TypeMethodDescriptionintaddUpAllPoolValues(IntSupplierFunction<PoolCounter> intGetterFunction) voidaddUpdate(long period) static PerformanceStatistic<PO extends IPooledObject>
voidonPooledObjectAlloc(Pool<PO> sender, PO newInstance, boolean isReused, Pool.PoolStacks threadLocalPoolStacks) <PO extends IPooledObject>
voidonPooledObjectReleased(Pool<PO> sender, PO releasedInstance, Pool.PoolStacks threadLocalPoolStacks) voidvisitAllPools(Consumer<PoolCounter> visitor) Methods inherited from class Statistic
getAll, getCounter, getList, getLocalTable, getName, getRemoteTable, getValue, store, updateMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IStatistic
getName, init, store, update
-
Field Details
-
memoryFree
-
memoryTotal
-
memoryUsed
-
memoryMax
-
minUpdatePeriod
-
maxUpdatePeriod
-
avgUpdatePeriod
-
fps
-
allPoolsTotal
-
allPoolsInUse
-
allPoolsFree
-
pools
-
-
Method Details
-
getInstance
-
addUpdate
public void addUpdate(long period) -
onPooledObjectAlloc
public <PO extends IPooledObject> void onPooledObjectAlloc(Pool<PO> sender, PO newInstance, boolean isReused, Pool.PoolStacks threadLocalPoolStacks) -
onPooledObjectReleased
public <PO extends IPooledObject> void onPooledObjectReleased(Pool<PO> sender, PO releasedInstance, Pool.PoolStacks threadLocalPoolStacks) -
visitAllPools
-
addUpAllPoolValues
-