Class Profiler

java.lang.Object
org.eclipse.m2m.atl.emftvm.profiler.Profiler
All Implemented Interfaces:
VMMonitor

public class Profiler extends Object implements VMMonitor
Profiler for EMFTVM.
  • Constructor Details

    • Profiler

      public Profiler()
  • Method Details

    • isTerminated

      public boolean isTerminated()
      Returns true when the running EMFTVM instance should be terminated.
      Specified by:
      isTerminated in interface VMMonitor
      Returns:
      true when the running EMFTVM instance should be terminated
    • enter

      public void enter(StackFrame frame)
      Enters the stack frame.
      Specified by:
      enter in interface VMMonitor
      Parameters:
      frame - the frame to enter in
    • leave

      public void leave(StackFrame frame)
      Leaves the stack frame.
      Specified by:
      leave in interface VMMonitor
      Parameters:
      frame - the frame to leave
    • step

      public void step(StackFrame frame)
      Steps into the stack frame.
      Specified by:
      step in interface VMMonitor
      Parameters:
      frame - the frame to step
    • terminated

      public void terminated()
      Invoked when execution is terminated.
      Specified by:
      terminated in interface VMMonitor
    • error

      public void error(StackFrame frame, String msg, Exception e)
      Throws an error.
      Specified by:
      error in interface VMMonitor
      Parameters:
      frame - the current frame
      msg - the error message
      e - the exception
    • getResults

      public List<Profiler.ProfilingData> getResults()
      Returns the profiling results.
      Returns:
      the results
    • toString

      public String toString()
      Overrides:
      toString in class Object