public class ProfilerManager
extends java.lang.Object
ProfilerPoint
, which are then used during execution of code to
demarcate the code to be profiled.
A ProfilerManager
for the current ClassLoader
is obtained
with getLocal()
.Modifier and Type | Method and Description |
---|---|
ProfilerPoint |
addProfilerPoint(java.lang.String name) |
void |
disable() |
void |
enable() |
ProfilerPoint |
getCategorizingProfilerPoint(java.lang.String name) |
static ProfilerManager |
getLocal() |
ProfilerPoint |
getProfilerPoint(java.lang.String name) |
ProfilerPoint |
getRoot() |
boolean |
isEnabled() |
void |
reset()
Clear all profiling information.
|
void |
setEnabled(boolean isEnabled)
Set to true to enable profiling, default false.
|
java.lang.String |
toString() |
public static ProfilerManager getLocal()
public ProfilerPoint getRoot()
public ProfilerPoint getProfilerPoint(java.lang.String name)
public void setEnabled(boolean isEnabled)
public boolean isEnabled()
public void enable()
public void disable()
public ProfilerPoint addProfilerPoint(java.lang.String name)
public ProfilerPoint getCategorizingProfilerPoint(java.lang.String name)
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object