java.lang.Object
java.lang.Record
org.kink_lang.kink.internal.callstack.CallStackSlice
- Record Components:
callStackElements
- call stack elements of the slice.tailTraceRingBuffers
- trace ring buffers of the slice.lnums
- SeeLnums
.
public record CallStackSlice(Cse[] callStackElements, TailTraceRingBuffer[] tailTraceRingBuffers, long[] lnums)
extends Record
Slice of call stack.
-
Constructor Summary
ConstructorDescriptionCallStackSlice
(Cse[] callStackElements, TailTraceRingBuffer[] tailTraceRingBuffers, long[] lnums) Constructs a slice. -
Method Summary
Modifier and TypeMethodDescriptionCse[]
Returns the value of thecallStackElements
record component.int
Returns the total usage of the dataStack by the slice.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.long[]
lnums()
Returns the value of thelnums
record component.int
size()
Returns the size of the slice.Returns the value of thetailTraceRingBuffers
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CallStackSlice
public CallStackSlice(Cse[] callStackElements, TailTraceRingBuffer[] tailTraceRingBuffers, long[] lnums) Constructs a slice.- Parameters:
callStackElements
- call stack elements of the slice.tailTraceRingBuffers
- trace ring buffers of the slice.lnums
- SeeLnums
.
-
-
Method Details
-
size
public int size()Returns the size of the slice.- Returns:
- the size of the slice.
-
dataStackUsage
public int dataStackUsage()Returns the total usage of the dataStack by the slice.- Returns:
- the total usage of the dataStack by the slice.
-
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
callStackElements
Returns the value of thecallStackElements
record component.- Returns:
- the value of the
callStackElements
record component
-
tailTraceRingBuffers
Returns the value of thetailTraceRingBuffers
record component.- Returns:
- the value of the
tailTraceRingBuffers
record component
-
lnums
public long[] lnums()Returns the value of thelnums
record component.- Returns:
- the value of the
lnums
record component
-