Package com.helix.profiler.flamegraph
Record Class StackSampleEvent
java.lang.Object
java.lang.Record
com.helix.profiler.flamegraph.StackSampleEvent
- All Implemented Interfaces:
ProfileEvent
public record StackSampleEvent(MetricType metricType, List<String> frames, long value, Instant timestamp)
extends Record
implements ProfileEvent
Profiling telemetry event carrying a recorded execution stack trace sample.
-
Constructor Summary
ConstructorsConstructorDescriptionStackSampleEvent(MetricType metricType, List<String> frames, long value) StackSampleEvent(MetricType metricType, List<String> frames, long value, Instant timestamp) Creates an instance of aStackSampleEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.frames()Returns the value of theframesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themetricTyperecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.longvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
StackSampleEvent
Creates an instance of aStackSampleEventrecord class.- Parameters:
metricType- the value for themetricTyperecord componentframes- the value for theframesrecord componentvalue- the value for thevaluerecord componenttimestamp- the value for thetimestamprecord component
-
StackSampleEvent
-
-
Method Details
-
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. -
hashCode
public final 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
metricType
Returns the value of themetricTyperecord component.- Returns:
- the value of the
metricTyperecord component
-
frames
Returns the value of theframesrecord component.- Returns:
- the value of the
framesrecord component
-
value
public long value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Specified by:
timestampin interfaceProfileEvent- Returns:
- the value of the
timestamprecord component
-