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.
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 Summary
Modifier and TypeMethodDescriptioncom.oracle.truffle.api.source.SourceSection
getTags()
Returns a set tags a stack location marked with.boolean
-
Method Details
-
getChildren
- Returns:
- the children of this
ProfilerNode
- Since:
- 0.30
-
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 sameStackTraceEntry
, otherwise false - Since:
- 0.30
-
getSourceSection
public com.oracle.truffle.api.source.SourceSection getSourceSection()- Returns:
- the
SourceSection
associated with thisProfilerNode
- Since:
- 0.30
-
getRootName
- Returns:
- The name of the root node in which this
ProfilerNode
appears. - Since:
- 0.30
-
getTags
Returns a set tags a stack location marked with. Common tags areroot
,statement
andexpression
. Whether statement or expression stack trace entries appear depends on the configuredfilter
.- Since:
- 0.30
-
getPayload
- Returns:
- The additional information attached to this node through the template parameter
- Since:
- 0.30
-