Class ProfilingDataManager
java.lang.Object
com.evolveum.midpoint.util.aspect.ProfilingDataManager
IMPORTANT NOTES:
1. Default dump interval is set to 30 minutes
This is a Singleton Class
ProfilingDataManager serves as a head of profiling data manipulation, configuration and dumping to log.
Some of processes in this class are synchronized for obvious reasons.
- Author:
- shood
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final List<ProfilingDataManager.Subsystem>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
applyGranularityFilterOnEnd
(String className, String methodName, Object[] args, ProfilingDataManager.Subsystem subsystem, long startTime, long processingStartTime) void
configureProfilingDataManager
(Map<ProfilingDataManager.Subsystem, Boolean> profiledSubsystems, Integer dumpInterval, boolean subsystemProfilingActive, boolean performance, boolean request) void
configureProfilingDataManagerForTest
(Map<ProfilingDataManager.Subsystem, Boolean> subsystems, boolean performance) void
static ProfilingDataManager
int
void
prepareRequestProfilingEvent
(ProfilingDataLog requestEvent) void
printEverything
(boolean afterTest) void
void
void
subsystemConfiguration
(Map<ProfilingDataManager.Subsystem, Boolean> subsystems)
-
Field Details
-
SUBSYSTEMS
-
INDENT_STRING
- See Also:
-
-
Method Details
-
getInstance
-
configureProfilingDataManager
public void configureProfilingDataManager(Map<ProfilingDataManager.Subsystem, Boolean> profiledSubsystems, Integer dumpInterval, boolean subsystemProfilingActive, boolean performance, boolean request) -
configureProfilingDataManagerForTest
public void configureProfilingDataManagerForTest(Map<ProfilingDataManager.Subsystem, Boolean> subsystems, boolean performance) -
applyGranularityFilterOnEnd
public void applyGranularityFilterOnEnd(String className, String methodName, Object[] args, ProfilingDataManager.Subsystem subsystem, long startTime, long processingStartTime) -
prepareRequestProfilingEvent
-
dumpToLog
public void dumpToLog() -
printEverything
public void printEverything(boolean afterTest) -
subsystemConfiguration
-
getPerformanceMap
-
getMinuteDumpInterval
public int getMinuteDumpInterval() -
appendProfilingToTest
public void appendProfilingToTest() -
stopProfilingAfterTest
public void stopProfilingAfterTest() -
printMapAfterTest
public void printMapAfterTest() -
getProfilingData
-