Class ExecutionProfiler
java.lang.Object
org.eclipse.epsilon.eol.execute.control.ExecutionProfiler
- All Implemented Interfaces:
ExecutionController,IExecutionListener
- Direct Known Subclasses:
RuleProfiler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaboutToExecute(ModuleElement ast, IEolContext context) voidcontrol(ModuleElement ast, IEolContext context) voiddispose()voiddone(ModuleElement ast, IEolContext context) voidfinishedExecuting(ModuleElement ast, Object result, IEolContext context) voidfinishedExecutingWithException(ModuleElement ast, EolRuntimeException exception, IEolContext context) booleanfinal voidmergeExecutionTimes(Map<? extends ModuleElement, Duration>... others) voidreport(IEolContext context) protected booleanscreenAST(ModuleElement ast, IEolContext context) Determines whether the ModuleElement should be profiled.toString()
-
Field Details
-
executionTimes
-
-
Constructor Details
-
ExecutionProfiler
public ExecutionProfiler()
-
-
Method Details
-
screenAST
Determines whether the ModuleElement should be profiled.- Parameters:
ast- The ModuleElement under scrutiny.context- The context passed tocontrol(ModuleElement, IEolContext)- Returns:
trueif the ModuleElement should be profiled,falseotherwise.- Since:
- 1.6
-
control
- Specified by:
controlin interfaceExecutionController
-
done
- Specified by:
donein interfaceExecutionController
-
dispose
public void dispose()- Specified by:
disposein interfaceExecutionController
-
report
- Specified by:
reportin interfaceExecutionController
-
toString
-
mergeExecutionTimes
-
getExecutionTimes
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceExecutionController
-
aboutToExecute
- Specified by:
aboutToExecutein interfaceIExecutionListener
-
finishedExecuting
- Specified by:
finishedExecutingin interfaceIExecutionListenerresult- the result of evaluating ast, calculated during execution
-
finishedExecutingWithException
public void finishedExecutingWithException(ModuleElement ast, EolRuntimeException exception, IEolContext context) - Specified by:
finishedExecutingWithExceptionin interfaceIExecutionListener
-