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 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 a ComparisonReport record class.
      Parameters:
      totalSamplesA - the value for the totalSamplesA record component
      totalSamplesB - the value for the totalSamplesB record component
      netSampleDelta - the value for the netSampleDelta record component
      regressions - the value for the regressions record component
      optimizations - the value for the optimizations record component
      allDeltas - the value for the allDeltas record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • totalSamplesA

      public long totalSamplesA()
      Returns the value of the totalSamplesA record component.
      Returns:
      the value of the totalSamplesA record component
    • totalSamplesB

      public long totalSamplesB()
      Returns the value of the totalSamplesB record component.
      Returns:
      the value of the totalSamplesB record component
    • netSampleDelta

      public long netSampleDelta()
      Returns the value of the netSampleDelta record component.
      Returns:
      the value of the netSampleDelta record component
    • regressions

      public List<ProfileComparator.FrameDelta> regressions()
      Returns the value of the regressions record component.
      Returns:
      the value of the regressions record component
    • optimizations

      public List<ProfileComparator.FrameDelta> optimizations()
      Returns the value of the optimizations record component.
      Returns:
      the value of the optimizations record component
    • allDeltas

      public List<ProfileComparator.FrameDelta> allDeltas()
      Returns the value of the allDeltas record component.
      Returns:
      the value of the allDeltas record component