Class PerformanceLoggingHelper

java.lang.Object
velox.api.layer1.utils.PerformanceLoggingHelper

public class PerformanceLoggingHelper
extends java.lang.Object
Helper class used to request a performance log record. Can be used
  • Constructor Summary

    Constructors 
    Constructor Description
    PerformanceLoggingHelper()  
  • Method Summary

    Modifier and Type Method Description
    static void logPerformance()
    Call this if something is lagging for unknown reason and you want to know if that's because CPU is fully utilized or because of something else, like network.
    static void setLogPerformanceRunnable​(java.lang.Runnable logPerformanceRunnable)
    Internal method used to set handler for performance logging request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • logPerformance

      public static void logPerformance()
      Call this if something is lagging for unknown reason and you want to know if that's because CPU is fully utilized or because of something else, like network. Will make bookmap measure cpu usage and print into the log file. Note: measurement will start shortly after you request it, but it will take some time to complete, meaning log record will represent CPU usage after the call, not before it.
    • setLogPerformanceRunnable

      public static void setLogPerformanceRunnable​(java.lang.Runnable logPerformanceRunnable)
      Internal method used to set handler for performance logging request. API modules should not use it.