Class Profiler
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.profiler.Profiler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Profiler.ProfilingData
Profiling data for a single operation (CodeBlock
orMethod
).
-
Constructor Summary
Constructors Constructor Description Profiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enter(StackFrame frame)
Enters the stack frame.void
error(StackFrame frame, java.lang.String msg, java.lang.Exception e)
Throws an error.java.util.List<Profiler.ProfilingData>
getResults()
Returns the profiling results.boolean
isTerminated()
Returnstrue
when the running EMFTVM instance should be terminated.void
leave(StackFrame frame)
Leaves the stack frame.void
step(StackFrame frame)
Steps into the stack frame.void
terminated()
Invoked when execution is terminated.java.lang.String
toString()
-
-
-
Method Detail
-
isTerminated
public boolean isTerminated()
Returnstrue
when the running EMFTVM instance should be terminated.- Specified by:
isTerminated
in interfaceVMMonitor
- Returns:
true
when 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:
terminated
in 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:
toString
in classjava.lang.Object
-
-