public class Trace extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Stack<long[]> |
callStack
array : [nest e call, start time, start time with child]
|
protected String |
name |
static int |
STAT_CALL
nombre d'appel Cache inclus
|
static int |
STAT_CALL_NEST_METHOD
nombre d'appel vers une autre e depuis cette methode
|
static int |
STAT_COMPUTATION
nombre d'appel reel qui a fait le calcul
|
static int |
STAT_TIME_MAX
temps max d'execution de cette methode (sans le temps des autres methodes)
|
static int |
STAT_TIME_MIN
temps mini d'execution de cette methode (sans le temps des autres methodes)
|
static int |
STAT_TIME_TOTAL
temps total d'execution de cette methode (sans le temps des autres methodes)
|
static int |
STAT_TIME_TOTAL_NEST_METHOD
temps total d'execution de cette methode (avec le temps des autres methodes)
|
protected Map<String,long[]> |
statistics
array : [call's numbers, call do, min time, max time, total time, total time with child]
|
| Modifier and Type | Method and Description |
|---|---|
long[] |
getStatistics(Object e) |
String |
printStatisticAndClear() |
protected void |
traceAfter(Object e,
boolean computation) |
void |
traceAfterCall(Object e) |
void |
traceAfterComputation(Object e) |
void |
traceBefore() |
public static final int STAT_CALL
public static final int STAT_COMPUTATION
public static final int STAT_CALL_NEST_METHOD
public static final int STAT_TIME_MIN
public static final int STAT_TIME_MAX
public static final int STAT_TIME_TOTAL
public static final int STAT_TIME_TOTAL_NEST_METHOD
protected String name
protected Map<String,long[]> statistics
protected Stack<long[]> callStack
public Trace(String name)
public long[] getStatistics(Object e)
public void traceBefore()
public void traceAfterCall(Object e)
public void traceAfterComputation(Object e)
protected void traceAfter(Object e, boolean computation)
public String printStatisticAndClear()
Copyright © 1999-2012 CodeLutin. All Rights Reserved.