Class PerformanceLogger

java.lang.Object
org.serviceconnector.log.PerformanceLogger

public final class PerformanceLogger extends Object
The Class PerformanceLogger.
  • Method Details

    • isEnabled

      public static boolean isEnabled()
      Checks if is enabled.
      Returns:
      true, if is enabled
    • beginThreadBound

      public static void beginThreadBound()
      Begin. Makes performance logger active. The method end stops the measuring and logs the result. Be careful its only working within the same thread.
    • endThreadBound

      public static void endThreadBound(String key)
      End. Stops current active performance logger and logs the result. Be careful its only working within the same thread.
      Parameters:
      key - the key
    • begin

      public static void begin(String key)
      Begin. Makes performance logger active. The method end stops the measuring and logs the result. Be careful begin/end is not thread safe. Coordinating begin and end must be done by the user of the PerformanceLogger. Use key to identify performanceItem.
      Parameters:
      key - the key
    • end

      public static void end(String key)
      End. Stops current active performance logger and logs the result. Be careful begin/end is not thread safe. Coordinating begin and end must be done by the user of the PerformanceLogger. Use key to identify performanceItem.
      Parameters:
      key - the key