Class Perflog

java.lang.Object
com.pnfsoftware.jeb.core.Perflog

public class Perflog extends Object
Performance counters, reserved for internal debug use.
  • Method Details

    • getCounterNames

      public static Set<String> getCounterNames()
      Get the names of all registered global counters.
      Returns:
      counter names
    • getGlobalCounters

      public static ReferenceCounter<String> getGlobalCounters()
      Get the global counters map.
      Returns:
      global reference counter
    • getFineGrainedCounters

      public static Map<String,ReferenceCounter<String>> getFineGrainedCounters()
      Get the fine-grained counters map keyed by source method.
      Returns:
      fine-grained counters
    • getFineGrainedCounter

      public static ReferenceCounter<String> getFineGrainedCounter(String key)
      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

      public static void reset(String key)
      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.