public class CallAnalyse extends Object
enter(java.lang.String)
, et en fin de methode
la methode exit(java.lang.String)
.
Ensuite on peut récuperer les statistiques par Thread ou de tous les threads
On a comme statistique
Created: 25 aout 2005 14:09:22 CEST
Modifier and Type | Class and Description |
---|---|
static class |
CallAnalyse.CallStatistics
CallStatistics is the class which handles values on excecution time and
memory usage.
|
static class |
CallAnalyse.CallStatisticsSummary
This class is collecting data from different CallStatistics classes by
using the method
CallAnalyse.CallStatisticsSummary.addCallStats(org.nuiton.util.CallAnalyse.CallStatistics) . |
static class |
CallAnalyse.ThreadStatistics |
Constructor and Description |
---|
CallAnalyse() |
Modifier and Type | Method and Description |
---|---|
static void |
activate()
Permet d'activer les statistiques, pour le thread courant
|
static void |
desactivate()
Permet de desactiver les statistiques, pour le thread courant
|
static void |
enter(String name) |
static void |
exit(String name)
Indique la sortie de l'appel, name doit avoir ete utilisé lors d'un enter
|
static List<CallAnalyse.ThreadStatistics> |
getAllThreadStatistics() |
static Map<String,CallAnalyse.CallStatisticsSummary> |
getSummary()
This method will get all the statistics from all the threads and put it
all together in a
Map which key is the name of the watched
element and the value is its instance of CallAnalyse.CallStatisticsSummary |
static CallAnalyse.ThreadStatistics |
getThreadStatistics() |
static boolean |
isActivate()
Permet de savoir si les statistiques sont activées ou non, pour le
thread courant
|
public static void activate()
public static void desactivate()
public static boolean isActivate()
public static void enter(String name)
name
- le nom de l'appel a monitorerpublic static void exit(String name)
name
- le nom de l'appel a monitorer, doit etre identique a
celui utilisé pour la methode enterpublic static CallAnalyse.ThreadStatistics getThreadStatistics()
public static List<CallAnalyse.ThreadStatistics> getAllThreadStatistics()
public static Map<String,CallAnalyse.CallStatisticsSummary> getSummary()
Map
which key is the name of the watched
element and the value is its instance of CallAnalyse.CallStatisticsSummary
Copyright © 2004–2020 CodeLutin. All rights reserved.