Class CPUTracer.Payload

java.lang.Object
com.oracle.truffle.tools.profiler.CPUTracer.Payload
Enclosing class:
CPUTracer

public static final class CPUTracer.Payload extends Object
Holds data on how many times a section of source code was executed. Differentiates between compiled and interpreted executions.
Since:
0.30
  • Method Details

    • getRootName

      public String getRootName()
      Returns:
      The name of the root this counter is associated with.
      Since:
      0.30
    • getTags

      public Set<Class<?>> getTags()
      Returns a set tags a stack location marked with. Common tags are root, statement and expression. Whether statement or expression stack trace entries appear depends on the configured filter.
      Since:
      0.30
    • getSourceSection

      public com.oracle.truffle.api.source.SourceSection getSourceSection()
      Returns:
      The source section for which this CPUTracer.Payload is counting executions
      Since:
      0.30
    • getCountCompiled

      public long getCountCompiled()
      Returns:
      The number of times the associated source sections was executed as compiled code
      Since:
      0.30
    • getCountInterpreted

      public long getCountInterpreted()
      Returns:
      The number of times the associated source sections was interpreted
      Since:
      0.30
    • getCount

      public long getCount()
      Returns:
      The total number of times the associated source sections was executed
      Since:
      0.30