Top Description Fields Constructors Methods
jdk.jfr.consumer

public final Class RecordedFrame

extends RecordedObject
Class Inheritance
Imports
java.lang.reflect.Modifier, jdk.jfr.internal.consumer.ObjectContext

A recorded frame in a stack trace.
Since
9

Field Summary

Inherited from jdk.jfr.consumer.RecordedObject:
objectContextobjects

Constructor Summary

AccessConstructor and Description
pack-priv
RecordedFrame(ObjectContext objectContext, Object[] values)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

byte code index, or -1 if doesn't exist
getBytecodeIndex
()

Returns the bytecode index for the execution point that is represented by this recorded frame.

public int

Returns:

the line number, or -1 if doesn't exist
getLineNumber
()

Returns the line number for the execution point that is represented by this recorded frame, or -1 if doesn't exist

public RecordedMethod

Returns:

the method, not null
getMethod
()

Returns the method for the execution point that is represented by this recorded frame.

public String

Returns:

the frame type, or null if doesn't exist
getType
()

Returns the frame type for the execution point that is represented by this recorded frame (for example, "Interpreted", "JIT compiled" or "Inlined").

public boolean

Returns:

true if this is a Java frame, false otherwise
isJavaFrame
()

Returns true if this is a Java frame, false otherwise.

Inherited from jdk.jfr.consumer.RecordedObject:
getBooleangetBytegetChargetClassgetDoublegetDurationgetFieldsgetFloatgetInstantgetIntgetLonggetShortgetStringgetThreadgetTypedgetValuehasFieldobjectAttoString

Constructor Detail

RecordedFrameback to summary
pack-priv RecordedFrame(ObjectContext objectContext, Object[] values)

Method Detail

getBytecodeIndexback to summary
public int getBytecodeIndex()

Returns the bytecode index for the execution point that is represented by this recorded frame.

Returns:int

byte code index, or -1 if doesn't exist

getLineNumberback to summary
public int getLineNumber()

Returns the line number for the execution point that is represented by this recorded frame, or -1 if doesn't exist

Returns:int

the line number, or -1 if doesn't exist

getMethodback to summary
public RecordedMethod getMethod()

Returns the method for the execution point that is represented by this recorded frame.

Returns:RecordedMethod

the method, not null

getTypeback to summary
public String getType()

Returns the frame type for the execution point that is represented by this recorded frame (for example, "Interpreted", "JIT compiled" or "Inlined").

Returns:String

the frame type, or null if doesn't exist

isJavaFrameback to summary
public boolean isJavaFrame()

Returns true if this is a Java frame, false otherwise.

A Java method that has a native modifier is considered a Java frame.

Returns:boolean

true if this is a Java frame, false otherwise

See Also
Modifier#isNative(int)