Package org.eclipse.epsilon.profiling
Class Profiler
java.lang.Object
org.eclipse.epsilon.profiling.Profiler
-
Field Summary
Modifier and TypeFieldDescriptionprotected ProfilerTarget
protected IEolContext
static final Profiler
protected Collection<IProfilerListener>
protected ProfilerTarget
protected Stopwatch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(IProfilerListener listener) protected void
collectExecutionTimes
(HashMap<String, ExecutionTime> executionTimes, ProfilerTarget target) protected long
getExecutionCount
(String targetName) getRoot()
boolean
void
refresh()
void
removeListener
(IProfilerListener listener) void
reset()
void
setContext
(IEolContext context) start
(String targetName, String data, ModuleElement moduleElement) void
stop()
void
-
Field Details
-
listeners
-
INSTANCE
-
root
-
activeTarget
-
stopwatch
-
targets
-
targetNames
-
context
-
-
Constructor Details
-
Profiler
public Profiler()
-
-
Method Details
-
start
-
start
-
refresh
public void refresh() -
stop
public void stop() -
stop
-
getTargetNames
-
getOverview
-
getTargetSummaries
-
collectExecutionTimes
protected void collectExecutionTimes(HashMap<String, ExecutionTime> executionTimes, ProfilerTarget target) -
getExecutionCount
-
isRunning
-
reset
public void reset() -
addListener
-
removeListener
-
getStopwatch
-
getRoot
-
getContext
- Returns:
- Since:
- 2.3
-
setContext
- Parameters:
context
-- Since:
- 2.3
-