Package io.ultreia.java4all.util
Class CallAnalyse.CallStatistics
- java.lang.Object
-
- io.ultreia.java4all.util.CallAnalyse.CallStatistics
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CallAnalyse.CallStatisticsSummary
- Enclosing class:
- CallAnalyse
public static class CallAnalyse.CallStatistics extends Object implements Cloneable
CallStatistics is the class which handles values on execution time and memory usage.Each CallStatistics object is for one particular name.
- Author:
- bpoussin
-
-
Field Summary
Fields Modifier and Type Field Description protected longcallsprotected longmaxMemoryprotected longmaxTimeprotected org.apache.commons.collections.primitives.ArrayLongListmemoriesprotected longminMemoryprotected longminTimeprotected Stringnameprotected Runtimeruntimeprotected longsumMemoryprotected longsumTimeprotected org.apache.commons.collections.primitives.ArrayLongListtimespile contenant le temps de appel, util pour les appels récursifs
-
Constructor Summary
Constructors Constructor Description CallStatistics(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenter()voidexit()longgetAvgMemory()longgetAvgTime()longgetCalls()longgetMaxMemory()longgetMaxTime()protected longgetMemory()longgetMinMemory()longgetMinTime()StringgetName()longgetSumMemory()longgetSumTime()StringtoString()
-
-
-
Field Detail
-
name
protected String name
-
calls
protected long calls
-
minTime
protected long minTime
-
maxTime
protected long maxTime
-
sumTime
protected long sumTime
-
minMemory
protected long minMemory
-
maxMemory
protected long maxMemory
-
sumMemory
protected long sumMemory
-
times
protected org.apache.commons.collections.primitives.ArrayLongList times
pile contenant le temps de appel, util pour les appels récursifs
-
memories
protected org.apache.commons.collections.primitives.ArrayLongList memories
-
runtime
protected Runtime runtime
-
-
Constructor Detail
-
CallStatistics
public CallStatistics(String name)
-
-
Method Detail
-
enter
public void enter()
-
exit
public void exit()
-
getName
public String getName()
-
getCalls
public long getCalls()
-
getMinTime
public long getMinTime()
-
getMaxTime
public long getMaxTime()
-
getSumTime
public long getSumTime()
-
getAvgTime
public long getAvgTime()
-
getMinMemory
public long getMinMemory()
-
getMaxMemory
public long getMaxMemory()
-
getSumMemory
public long getSumMemory()
-
getAvgMemory
public long getAvgMemory()
-
getMemory
protected long getMemory()
-
-