Class ProfilerModelHandler


  • public final class ProfilerModelHandler
    extends java.lang.Object
    Class that build the profiling model.
    • Method Detail

      • init

        public void init()
        Initialize the model.
      • newOperation

        public void newOperation​(java.lang.String sfOpName,
                                 IStackFrame frame,
                                 ATLOperation atlOperation,
                                 org.eclipse.emf.ecore.EObject atlElement)
        Create new operation node or start with the root model.
        Parameters:
        sfOpName - the operation name
        frame - the frame
        atlOperation - the atl operation
        atlElement - the atl EObject
      • interceptError

        public void interceptError​(IStackFrame frame,
                                   java.lang.String msg,
                                   java.lang.Throwable e)
        Prepare error object to show in the execution display.
        Parameters:
        frame - the frame
        msg - the error message
        e - the exception
      • makeStep

        public void makeStep​(IStackFrame frame)
        Execute simple asm instruction.
        Parameters:
        frame - the frame
      • endExecution

        public void endExecution()
        Ends profiling execution.
      • getModelTotalTime

        public double getModelTotalTime()
        Returns the total time.
        Returns:
        the total time
      • getModelTotalInstructions

        public long getModelTotalInstructions()
        Returns the total instructions count.
        Returns:
        the total instructions count
      • setProfilingModel

        public void setProfilingModel​(ProfilingModel profilingModel)
      • getOperationRegistry

        public java.util.Map<java.lang.String,​ATLOperation> getOperationRegistry()
      • isDebugMessages

        public boolean isDebugMessages()
      • setDebugMessages

        public void setDebugMessages​(boolean debugMessages)
      • isHasTocreateStep

        public boolean isHasTocreateStep()
      • setHasTocreateStep

        public void setHasTocreateStep​(boolean hasTocreateStep)