Class StackTraceEntry
java.lang.Object
com.oracle.truffle.tools.profiler.StackTraceEntry
An entry in a stack trace, as returned by
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.- Since:
- 19.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the name of the root node.com.oracle.truffle.api.source.SourceSection
Returns the source section of the stack trace entry.getTags()
Returns a set tags a stack location marked with.int
getTier()
int
hashCode()
boolean
boolean
Deprecated.boolean
Returnstrue
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, elsefalse
.boolean
Deprecated.UsegetTier()
Converts the stack trace entry to a Java stack trace element.toString()
-
Method Details
-
getTier
public int getTier()- Returns:
- with which tier was this entry compiled. Note: Tier 0 represents the interpreter.
- Since:
- 21.3.0
-
isCompilationRoot
public boolean isCompilationRoot()- Returns:
true
if the entry was a compilation root,false
if it was inlined. Interpreted enries are implicitly considered compilation roots.- Since:
- 21.3.0
-
isCompiled
Deprecated.UsegetTier()
Returnstrue
if this stack entry was executed in compiled mode at the time when the stack trace was captured, elsefalse
.- Since:
- 19.0
-
isInterpreted
Deprecated.UsegetTier()
Returnstrue
if this stack entry was executed in interpreted mode at the time when the stack trace was captured, elsefalse
.- Since:
- 19.0
-
isInlined
public boolean isInlined()Returnstrue
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, elsefalse
.- Since:
- 19.0
-
getSourceSection
public com.oracle.truffle.api.source.SourceSection getSourceSection()Returns the source section of the stack trace entry.- Since:
- 19.0
-
getRootName
Returns the name of the root node. For elements that don't represent a guest language root like statements and expressions this returns the name of the enclosing root.- Since:
- 19.0
- See Also:
-
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
. Nevernull
.- Since:
- 19.0
- See Also:
-
toStackTraceElement
Converts the stack trace entry to a Java stack trace element. No guarantees are provided about the format of the stack trace element. The format of the stack trace element may change without notice.- Since:
- 19.0
-
hashCode
public int hashCode() -
equals
-
toString
-
getTier()