com.jurismarches.vradi.aspect
Class VradiTrace

java.lang.Object
  extended by com.jurismarches.vradi.aspect.VradiTrace

public class VradiTrace
extends Object

Trace.

Since:
19 févr. 2010 05:55:04
Version:
$Revision: 542 $ $Date: 2010-02-22 00:29:00 +0100 (lun., 22 févr. 2010) $
Author:
$Author: schorlet $

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
VradiTrace(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

STAT_CALL

public static final int STAT_CALL
nombre d'appel Cache inclus

See Also:
Constant Field Values

STAT_COMPUTATION

public static final int STAT_COMPUTATION
nombre d'appel reel qui a fait le calcul

See Also:
Constant Field Values

STAT_CALL_NEST_METHOD

public static final int STAT_CALL_NEST_METHOD
nombre d'appel vers une autre e depuis cette methode

See Also:
Constant Field Values

STAT_TIME_MIN

public static final int STAT_TIME_MIN
temps mini d'execution de cette methode (sans le temps des autres methodes)

See Also:
Constant Field Values

STAT_TIME_MAX

public static final int STAT_TIME_MAX
temps max d'execution de cette methode (sans le temps des autres methodes)

See Also:
Constant Field Values

STAT_TIME_TOTAL

public static final int STAT_TIME_TOTAL
temps total d'execution de cette methode (sans le temps des autres methodes)

See Also:
Constant Field Values

STAT_TIME_TOTAL_NEST_METHOD

public static final int STAT_TIME_TOTAL_NEST_METHOD
temps total d'execution de cette methode (avec le temps des autres methodes)

See Also:
Constant Field Values

name

protected String name

statistics

protected Map<String,long[]> statistics
array : [call's numbers, call do, min time, max time, total time, total time with child]


callStack

protected Stack<long[]> callStack
array : [nest e call, start time, start time with child]

Constructor Detail

VradiTrace

public VradiTrace(String name)
Method Detail

getStatistics

public long[] getStatistics(Object e)

traceBefore

public void traceBefore()

traceAfterCall

public void traceAfterCall(Object e)

traceAfterComputation

public void traceAfterComputation(Object e)

traceAfter

protected void traceAfter(Object e,
                          boolean computation)

printStatisticAndClear

public String printStatisticAndClear()


Copyright © 2009-2010 JurisMarches. All Rights Reserved.