public final class StackTraceEntry extends Object
CPUSampler.takeSample(). Each entry represents
a single element on the stack that is currently being executed. Stack trace entries may represent
a root, expression or statement execution. The frame at the top of the stack represents the
execution point at which the stack trace was generated.CPUSampler.takeSample()| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getRootName()
Returns the name of the root node.
|
com.oracle.truffle.api.source.SourceSection |
getSourceSection()
Returns the source section of the stack trace entry.
|
Set<Class<?>> |
getTags()
Returns a set tags a stack location marked with.
|
int |
hashCode() |
boolean |
isCompiled()
Returns
true if this stack entry was executed in compiled mode at the time when
the stack trace was captured, else false. |
boolean |
isInlined()
Returns
true if this stack entry was executed in compiled mode and was inlined
in a parent stack entry at the time when the stack trace was captured, else
false. |
boolean |
isInterpreted()
Returns
true if this stack entry was executed in interpreted mode at the time
when the stack trace was captured, else false. |
StackTraceElement |
toStackTraceElement()
Converts the stack trace entry to a Java stack trace element.
|
String |
toString() |
public boolean isCompiled()
true if this stack entry was executed in compiled mode at the time when
the stack trace was captured, else false.public boolean isInterpreted()
true if this stack entry was executed in interpreted mode at the time
when the stack trace was captured, else false.public boolean isInlined()
true if this stack entry was executed in compiled mode and was inlined
in a parent stack entry at the time when the stack trace was captured, else
false.public com.oracle.truffle.api.source.SourceSection getSourceSection()
public String getRootName()
RootNode.getName()public Set<Class<?>> getTags()
root,
statement and expression. Whether statement or
expression stack trace entries appear depends on the configured
filter. Never null.Instrumenter.queryTags(Node)public StackTraceElement toStackTraceElement()