Package velox.api.layer1.utils
Class PerformanceLoggingHelper
java.lang.Object
velox.api.layer1.utils.PerformanceLoggingHelper
Helper class used to request a performance log record. Can be used
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCall 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 voidsetLogPerformanceRunnable(Runnable logPerformanceRunnable) Internal method used to set handler for performance logging request.
-
Constructor Details
-
PerformanceLoggingHelper
public PerformanceLoggingHelper()
-
-
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
Internal method used to set handler for performance logging request. API modules should not use it.
-