Class ProfilerNode<T>

java.lang.Object
com.oracle.truffle.tools.profiler.ProfilerNode<T>
Type Parameters:
T - The type of data that should be associated with this node.

public final class ProfilerNode<T> extends Object
Represents a node in the call tree built up by sampling the stack. Additional data can be attached to this class through the template parameter, allowing individual tools to attach needed data to the call tree.
Since:
0.30
  • Method Details

    • getChildren

      public Collection<ProfilerNode<T>> getChildren()
      Returns:
      the children of this ProfilerNode
      Since:
      0.30
    • getParent

      public ProfilerNode<T> getParent()
      Returns:
      the parent of this ProfilerNode
      Since:
      0.30
    • isRecursive

      public boolean isRecursive()
      Returns:
      true if the parent chain contains a ProfilerNode with the same StackTraceEntry, otherwise false
      Since:
      0.30
    • getSourceSection

      public com.oracle.truffle.api.source.SourceSection getSourceSection()
      Returns:
      the SourceSection associated with this ProfilerNode
      Since:
      0.30
    • getRootName

      public String getRootName()
      Returns:
      The name of the root node in which this ProfilerNode appears.
      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
    • getPayload

      public T getPayload()
      Returns:
      The additional information attached to this node through the template parameter
      Since:
      0.30