Class ATLProfiler
java.lang.Object
java.util.Observable
org.eclipse.m2m.atl.profiler.core.ATLProfiler
ATLProfiler is a component that dispatch ATL debugging information to ATLModelHandler invalid input: '&'
ProfilerModelHandler. This class is used by the ProflingDebugger class.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ATLProfilerSingleton access.voidinitProfiler(org.eclipse.emf.ecore.EObject model) Prepare atl invalid input: '&' profiler model handlers with the ATL model.voidinterceptEnter(IStackFrame frame) Intercept the beginning of an operation execution.
Delegate operation creation toProfilerModelHandler.
Create entry in the operation registry (ProfilerModelHandler).voidinterceptError(IStackFrame frame, String msg, Throwable e) Intercept errors.voidinterceptLeave(IStackFrame frame) Intercept the exiting of an operation execution.
Delegate operation closure toProfilerModelHandler.
Check entry in the operation registry.voidinterceptStep(IStackFrame frame) voidIntercept execution end.
Close last operation and notify profiler model to listeners components.voidPrint short profiling summary.Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Method Details
-
getInstance
Singleton access.- Returns:
- the
ATLProfilersingleton
-
initProfiler
public void initProfiler(org.eclipse.emf.ecore.EObject model) Prepare atl invalid input: '&' profiler model handlers with the ATL model.- Parameters:
model- the ATL model
-
interceptEnter
Intercept the beginning of an operation execution.
Delegate operation creation toProfilerModelHandler.
Create entry in the operation registry (ProfilerModelHandler).- Parameters:
frame- the stack frame
-
interceptLeave
Intercept the exiting of an operation execution.
Delegate operation closure toProfilerModelHandler.
Check entry in the operation registry.- Parameters:
frame- the stack frame
-
interceptStep
- Parameters:
frame- the stack frame
-
interceptError
Intercept errors.- Parameters:
frame- the stack framemsg- (message)e- (stacktrace)
-
interceptTerminated
public void interceptTerminated()Intercept execution end.
Close last operation and notify profiler model to listeners components. -
printProfilingSummary
public void printProfilingSummary()Print short profiling summary.
-