Flushes the stored profiling data to the logger.
Flushes the stored profiling data to the logger.
the timestamp to use when writing the entries to the logger
Captures the current call stacks of all live threads and stores relevant profiling data about them.
Returns a boolean value indicating if the stack trace element should be considered when profiling or not.
Returns a boolean value indicating if the stack trace element should be considered when profiling or not.
the stack trace element
true
if the stack trace element should be considered in profiling, false
otherwise.
Stops the data collecting and flushes the remaining data to the logger, causing the thread to stop eventually.
A lightweight CPU profiler based on call stack sampling.
When run as a thread, it periodically captures the call stacks of all live threads and maintains counters for each leaf method. The counters are then dumped to a logger with a given periodicity (most probably greater than the sampling period). Each data row written to the logger contains a timestamp, the method profiled, its location in the source code and the associated absolute counters and relative weight.