Package com.pnfsoftware.jeb.core
Class Perflog
java.lang.Object
com.pnfsoftware.jeb.core.Perflog
Performance counters, reserved for internal debug use.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcount()A method that wish to record its call should call count.Get the names of all registered global counters.static ReferenceCounter<String> Get the fine-grained counter associated with a source method.static Map<String, ReferenceCounter<String>> Get the fine-grained counters map keyed by source method.static ReferenceCounter<String> Get the global counters map.static booleanisEmpty()Determine whether no counters are currently recorded.static voidreset()Reset all counters.static voidReset the counters associated with a specific key.
-
Method Details
-
getCounterNames
Get the names of all registered global counters.- Returns:
- counter names
-
getGlobalCounters
Get the global counters map.- Returns:
- global reference counter
-
getFineGrainedCounters
Get the fine-grained counters map keyed by source method.- Returns:
- fine-grained counters
-
getFineGrainedCounter
Get the fine-grained counter associated with a source method.- Parameters:
key- counter key- Returns:
- fine-grained counter, or null if absent
-
isEmpty
public static boolean isEmpty()Determine whether no counters are currently recorded.- Returns:
- true if all counters are empty
-
reset
public static void reset()Reset all counters. -
reset
Reset the counters associated with a specific key.- Parameters:
key- counter key
-
count
public static void count()A method that wish to record its call should call count. Do not wrap this method in utility code. The source method must call count directly.Usage: "com.pnfsoftware.jeb.core.Perflog.count(); //[<:DEBUG]" at method entry point. Results can be seen in "Internal" menu in UI.
-