Class Profiler
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.profiler.Profiler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProfiler.ProfilingDataProfiling data for a single operation (CodeBlockorMethod).
-
Constructor Summary
Constructors Constructor Description Profiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenter(StackFrame frame)Enters the stack frame.voiderror(StackFrame frame, java.lang.String msg, java.lang.Exception e)Throws an error.java.util.List<Profiler.ProfilingData>getResults()Returns the profiling results.booleanisTerminated()Returnstruewhen the running EMFTVM instance should be terminated.voidleave(StackFrame frame)Leaves the stack frame.voidstep(StackFrame frame)Steps into the stack frame.voidterminated()Invoked when execution is terminated.java.lang.StringtoString()
-
-
-
Method Detail
-
isTerminated
public boolean isTerminated()
Returnstruewhen the running EMFTVM instance should be terminated.- Specified by:
isTerminatedin interfaceVMMonitor- Returns:
truewhen the running EMFTVM instance should be terminated
-
enter
public void enter(StackFrame frame)
Enters the stack frame.
-
leave
public void leave(StackFrame frame)
Leaves the stack frame.
-
step
public void step(StackFrame frame)
Steps into the stack frame.
-
terminated
public void terminated()
Invoked when execution is terminated.- Specified by:
terminatedin interfaceVMMonitor
-
error
public void error(StackFrame frame, java.lang.String msg, java.lang.Exception e)
Throws an error.
-
getResults
public java.util.List<Profiler.ProfilingData> getResults()
Returns the profiling results.- Returns:
- the results
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-