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 |
getTier() |
int |
hashCode() |
boolean |
isCompilationRoot() |
StackTraceElement |
toStackTraceElement()
Converts the stack trace entry to a Java stack trace element.
|
String |
toString() |
public int getTier()
public boolean isCompilationRoot()
true if the entry was a compilation root, false if it was
inlined. Interpreted enries are implicitly considered compilation roots.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()