Class Profiler.ProfilingData

java.lang.Object
org.eclipse.m2m.atl.emftvm.profiler.Profiler.ProfilingData
Enclosing class:
Profiler

public static class Profiler.ProfilingData extends Object
Profiling data for a single operation (CodeBlock or Method).
  • Constructor Details

    • ProfilingData

      public ProfilingData(CodeBlock codeBlock, Method method, long duration, double durationRatio, long invocations)
      Creates a new Profiler.ProfilingData.
      Parameters:
      codeBlock - the CodeBlock, if applicable
      method - the native Method, if applicable
      duration - the duration spent in nanoseconds
      durationRatio - the duration ratio to the total execution time
      invocations - the amount of invocations
  • Method Details

    • getCodeBlock

      public CodeBlock getCodeBlock()
      Returns the CodeBlock, if applicable.
      Returns:
      the codeBlock, or null
    • getMethod

      public Method getMethod()
      Returns the native Method, if applicable.
      Returns:
      the method, or null
    • getDuration

      public long getDuration()
      Returns the duration spent in nanoseconds.
      Returns:
      the duration
    • getDurationRatio

      public double getDurationRatio()
      Returns the duration ratio to the total execution time.
      Returns:
      the durationRatio
    • getInvocations

      public long getInvocations()
      Returns the amount of invocations.
      Returns:
      the invocations
    • getOperation

      public Object getOperation()
      Returns getCodeBlock() or getMethod(), whichever is not null.
      Returns:
      getCodeBlock(), getMethod(), or null