Package org.nuiton.profiling
Class Statistic
- java.lang.Object
-
- org.nuiton.profiling.Statistic
-
- Direct Known Subclasses:
StatisticMemory,StatisticMethod,StatisticTrace
public class Statistic extends Object
Statistique sur un appele de methode
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long value)StringBuilderexportCSV(StringBuilder result)StringBuilderexportJSON(StringBuilder result)StringBuilderexportText(StringBuilder result)StringformatValue(long value)You can change implementation of this method in children class (ex: convert to second for time, or 'Mo' for memory)longgetCall()longgetMax()doublegetMean()longgetMin()StringgetName()doublegetSlopeOfLinearRegression()Compute splope of Linear regression (only the a in y=ax+b)doublegetStandardDeviation()Compute Standard deviation (ecart type)longgetTotal()
-
-
-
Constructor Detail
-
Statistic
public Statistic(String name)
-
-
Method Detail
-
getName
public String getName()
-
add
public void add(long value)
-
getCall
public long getCall()
-
getTotal
public long getTotal()
-
getMax
public long getMax()
-
getMin
public long getMin()
-
getMean
public double getMean()
-
getStandardDeviation
public double getStandardDeviation()
Compute Standard deviation (ecart type)- Returns:
-
getSlopeOfLinearRegression
public double getSlopeOfLinearRegression()
Compute splope of Linear regression (only the a in y=ax+b)- Returns:
-
formatValue
public String formatValue(long value)
You can change implementation of this method in children class (ex: convert to second for time, or 'Mo' for memory)- Parameters:
value-- Returns:
-
exportCSV
public StringBuilder exportCSV(StringBuilder result)
-
exportJSON
public StringBuilder exportJSON(StringBuilder result)
-
exportText
public StringBuilder exportText(StringBuilder result)
-
-