|
||||||||||
| 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 java.util.Stack<long[]> |
callStack
array : [nest e call, start time, start time with child] |
protected java.lang.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 java.util.Map<java.lang.String,long[]> |
statistics
array : [call's numbers, call do, min time, max time, total time, total time with child] |
| Constructor Summary | |
|---|---|
Trace(java.lang.String name)
|
|
| Method Summary | |
|---|---|
long[] |
getStatistics(java.lang.Object e)
|
java.lang.String |
printStatisticAndClear()
|
protected void |
traceAfter(java.lang.Object e,
boolean computation)
|
void |
traceAfterCall(java.lang.Object e)
|
void |
traceAfterComputation(java.lang.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 java.lang.String name
protected java.util.Map<java.lang.String,long[]> statistics
protected java.util.Stack<long[]> callStack
| Constructor Detail |
|---|
public Trace(java.lang.String name)
| Method Detail |
|---|
public long[] getStatistics(java.lang.Object e)
public void traceBefore()
public void traceAfterCall(java.lang.Object e)
public void traceAfterComputation(java.lang.Object e)
protected void traceAfter(java.lang.Object e,
boolean computation)
public java.lang.String printStatisticAndClear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||