Package com.helix.profiler.async
Record Class ProfileComparator.ComparisonReport
java.lang.Object
java.lang.Record
com.helix.profiler.async.ProfileComparator.ComparisonReport
- Enclosing class:
ProfileComparator
public static record ProfileComparator.ComparisonReport(long totalSamplesA, long totalSamplesB, long netSampleDelta, List<ProfileComparator.FrameDelta> regressions, List<ProfileComparator.FrameDelta> optimizations, List<ProfileComparator.FrameDelta> allDeltas)
extends Record
Report holding full comparison results between two profile datasets.
-
Constructor Summary
ConstructorsConstructorDescriptionComparisonReport(long totalSamplesA, long totalSamplesB, long netSampleDelta, List<ProfileComparator.FrameDelta> regressions, List<ProfileComparator.FrameDelta> optimizations, List<ProfileComparator.FrameDelta> allDeltas) Creates an instance of aComparisonReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallDeltasrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thenetSampleDeltarecord component.Returns the value of theoptimizationsrecord component.Returns the value of theregressionsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalSamplesArecord component.longReturns the value of thetotalSamplesBrecord component.
-
Constructor Details
-
ComparisonReport
public ComparisonReport(long totalSamplesA, long totalSamplesB, long netSampleDelta, List<ProfileComparator.FrameDelta> regressions, List<ProfileComparator.FrameDelta> optimizations, List<ProfileComparator.FrameDelta> allDeltas) Creates an instance of aComparisonReportrecord class.- Parameters:
totalSamplesA- the value for thetotalSamplesArecord componenttotalSamplesB- the value for thetotalSamplesBrecord componentnetSampleDelta- the value for thenetSampleDeltarecord componentregressions- the value for theregressionsrecord componentoptimizations- the value for theoptimizationsrecord componentallDeltas- the value for theallDeltasrecord component
-
-
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 '=='. -
totalSamplesA
public long totalSamplesA()Returns the value of thetotalSamplesArecord component.- Returns:
- the value of the
totalSamplesArecord component
-
totalSamplesB
public long totalSamplesB()Returns the value of thetotalSamplesBrecord component.- Returns:
- the value of the
totalSamplesBrecord component
-
netSampleDelta
public long netSampleDelta()Returns the value of thenetSampleDeltarecord component.- Returns:
- the value of the
netSampleDeltarecord component
-
regressions
Returns the value of theregressionsrecord component.- Returns:
- the value of the
regressionsrecord component
-
optimizations
Returns the value of theoptimizationsrecord component.- Returns:
- the value of the
optimizationsrecord component
-
allDeltas
Returns the value of theallDeltasrecord component.- Returns:
- the value of the
allDeltasrecord component
-