Package redempt.redlib.dev.profiler
Class Profiler
java.lang.Object
redempt.redlib.dev.profiler.Profiler
- Direct Known Subclasses:
BurstProfiler
,PassiveProfiler
A base class of a Profiler which can be used to analyze the performance of the server. Runs asynchronously
in its own thread.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
end()
abstract SampleSummary
abstract void
start()
Start this profiler.final void
stop()
Stop this profilerstatic void
stopAll()
Stop all running profilers
-
Constructor Details
-
Profiler
public Profiler()
-
-
Method Details
-
stopAll
public static void stopAll()Stop all running profilers -
start
public abstract void start()Start this profiler. Must be run from the thread you intend to profile. -
end
protected abstract void end() -
getSummary
- Returns:
- A SampleSummary representing all of the data collected by this profiler
-
stop
public final void stop()Stop this profiler
-