Package org.eclipse.epsilon.profiling
Class Profiler
java.lang.Object
org.eclipse.epsilon.profiling.Profiler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProfilerTargetprotected IEolContextstatic final Profilerprotected Collection<IProfilerListener>protected ProfilerTargetprotected Stopwatch -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(IProfilerListener listener) protected voidcollectExecutionTimes(HashMap<String, ExecutionTime> executionTimes, ProfilerTarget target) protected longgetExecutionCount(String targetName) getRoot()booleanvoidrefresh()voidremoveListener(IProfilerListener listener) voidreset()voidsetContext(IEolContext context) start(String targetName, String data, ModuleElement moduleElement) voidstop()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
-