Package org.nuiton.profiling
Class StatisticMethod
- java.lang.Object
-
- org.nuiton.profiling.Statistic
-
- org.nuiton.profiling.StatisticMethod
-
public class StatisticMethod extends Statistic
Statistique sur un appele de methode
-
-
Constructor Summary
Constructors Constructor Description StatisticMethod(Method method)StatisticMethod(String threadName, Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Method caller, long time, long nestTime, long nestCall)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)-
Methods inherited from class org.nuiton.profiling.Statistic
add, getCall, getMax, getMean, getMin, getName, getSlopeOfLinearRegression, getStandardDeviation, getTotal
-
-
-
-
Method Detail
-
add
public void add(Method caller, long time, long nestTime, long nestCall)
- Parameters:
caller-time- time spent in this method in nonasecondnestTime-nestCall-
-
formatValue
public String formatValue(long value)
Description copied from class:StatisticYou can change implementation of this method in children class (ex: convert to second for time, or 'Mo' for memory)- Overrides:
formatValuein classStatistic- Returns:
-
exportCSV
public StringBuilder exportCSV(StringBuilder result)
-
exportJSON
public StringBuilder exportJSON(StringBuilder result)
- Overrides:
exportJSONin classStatistic
-
exportText
public StringBuilder exportText(StringBuilder result)
- Overrides:
exportTextin classStatistic
-
-