Package implementation.utils.profiling
Class CallCounterCollection
- java.lang.Object
-
- implementation.utils.profiling.CallCounterCollection
-
public class CallCounterCollection extends java.lang.Object
Collection of CallCounter with static methods to call from anywhere in code- Author:
- nk-fouque
-
-
Constructor Summary
Constructors Constructor Description CallCounterCollection()
-
Method Summary
Modifier and Type Method Description static void
call(java.lang.String functionName)
Increments the call count of the function in parameter, creates a new counter if not already donestatic int
getCallCount(java.lang.String functionName)
static void
reset(java.lang.String functionName)
Sets the counter for said function to zerostatic void
resetAll()
-
-
-
Method Detail
-
call
public static void call(java.lang.String functionName)
Increments the call count of the function in parameter, creates a new counter if not already done
-
reset
public static void reset(java.lang.String functionName)
Sets the counter for said function to zero
-
resetAll
public static void resetAll()
-
getCallCount
public static int getCallCount(java.lang.String functionName)
- Returns:
- The number of time the function in parameter has been called
-
-