Record Class JitReport

java.lang.Object
java.lang.Record
com.helix.experiments.jit.JitReport

public record JitReport(String targetMethod, long totalInvocations, int highestTierAchieved, int c1CompilationCount, int c2CompilationCount, boolean isInlined, String inliningReason) extends Record
Report summarizing observed JIT compilation tiers, invocation counts, and inlining decisions.
  • Constructor Summary

    Constructors
    Constructor
    Description
    JitReport(String targetMethod, long totalInvocations, int highestTierAchieved, int c1CompilationCount, int c2CompilationCount, boolean isInlined, String inliningReason)
    Creates an instance of a JitReport record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the c1CompilationCount record component.
    int
    Returns the value of the c2CompilationCount record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the highestTierAchieved record component.
    Returns the value of the inliningReason record component.
    boolean
    Returns the value of the isInlined record component.
    Returns the value of the targetMethod record component.
    Returns a string representation of this record class.
    long
    Returns the value of the totalInvocations record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JitReport

      public JitReport(String targetMethod, long totalInvocations, int highestTierAchieved, int c1CompilationCount, int c2CompilationCount, boolean isInlined, String inliningReason)
      Creates an instance of a JitReport record class.
      Parameters:
      targetMethod - the value for the targetMethod record component
      totalInvocations - the value for the totalInvocations record component
      highestTierAchieved - the value for the highestTierAchieved record component
      c1CompilationCount - the value for the c1CompilationCount record component
      c2CompilationCount - the value for the c2CompilationCount record component
      isInlined - the value for the isInlined record component
      inliningReason - the value for the inliningReason record component
  • Method Details

    • toString

      public 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.
    • targetMethod

      public String targetMethod()
      Returns the value of the targetMethod record component.
      Returns:
      the value of the targetMethod record component
    • totalInvocations

      public long totalInvocations()
      Returns the value of the totalInvocations record component.
      Returns:
      the value of the totalInvocations record component
    • highestTierAchieved

      public int highestTierAchieved()
      Returns the value of the highestTierAchieved record component.
      Returns:
      the value of the highestTierAchieved record component
    • c1CompilationCount

      public int c1CompilationCount()
      Returns the value of the c1CompilationCount record component.
      Returns:
      the value of the c1CompilationCount record component
    • c2CompilationCount

      public int c2CompilationCount()
      Returns the value of the c2CompilationCount record component.
      Returns:
      the value of the c2CompilationCount record component
    • isInlined

      public boolean isInlined()
      Returns the value of the isInlined record component.
      Returns:
      the value of the isInlined record component
    • inliningReason

      public String inliningReason()
      Returns the value of the inliningReason record component.
      Returns:
      the value of the inliningReason record component