public class Profiler extends Object
Modifier and Type | Field and Description |
---|---|
protected ProfilerTarget |
activeTarget |
static Profiler |
INSTANCE |
protected Collection<IProfilerListener> |
listeners |
protected ProfilerTarget |
root |
protected Stopwatch |
stopwatch |
protected List<String> |
targetNames |
protected Map<String,Long> |
targets |
Constructor and Description |
---|
Profiler() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IProfilerListener listener) |
protected void |
collectExecutionTimes(HashMap<String,ExecutionTime> executionTimes,
ProfilerTarget target) |
protected long |
getExecutionCount(String targetName) |
ProfilerOverview |
getOverview() |
ProfilerTarget |
getRoot() |
Stopwatch |
getStopwatch() |
List<String> |
getTargetNames() |
List<ProfilerTargetSummary> |
getTargetSummaries() |
boolean |
isRunning(String targetName) |
void |
refresh() |
void |
removeListener(IProfilerListener listener) |
void |
reset() |
ProfilerTarget |
start(String targetName) |
ProfilerTarget |
start(String targetName,
String data,
ModuleElement moduleElement) |
void |
stop() |
void |
stop(String target) |
protected Collection<IProfilerListener> listeners
public static Profiler INSTANCE
protected ProfilerTarget root
protected ProfilerTarget activeTarget
protected Stopwatch stopwatch
public ProfilerTarget start(String targetName)
public ProfilerTarget start(String targetName, String data, ModuleElement moduleElement)
public void refresh()
public void stop()
public void stop(String target)
public ProfilerOverview getOverview()
public List<ProfilerTargetSummary> getTargetSummaries()
protected void collectExecutionTimes(HashMap<String,ExecutionTime> executionTimes, ProfilerTarget target)
protected long getExecutionCount(String targetName)
public boolean isRunning(String targetName)
public void reset()
public void addListener(IProfilerListener listener)
public void removeListener(IProfilerListener listener)
public Stopwatch getStopwatch()
public ProfilerTarget getRoot()
Copyright © 2018. All rights reserved.