|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.util.Trace
public class Trace
Permet de tracer les appels aux methodes utilisateur ainsi que l'execution a ces methodes. La difference entre les deux est lors de l'utilisation du cache les appels seront superieur a l'execution car certaine valeur seront reutilisé dans le cache.
| Field Summary | |
|---|---|
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] |
| Constructor Summary | |
|---|---|
Trace(String name)
|
|
| Method Summary | |
|---|---|
long[] |
getStatistics(Object e)
|
String |
printStatisticAndClear()
|
protected void |
traceAfter(Object e,
boolean computation)
|
void |
traceAfterCall(Object e)
|
void |
traceAfterComputation(Object e)
|
void |
traceBefore()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public Trace(String name)
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||