Record Class CompilationEvent

java.lang.Object
java.lang.Record
com.helix.profiler.jit.CompilationEvent
Record Components:
timestampMs - Timestamp in milliseconds since JVM start (or epoch ms if converted)
compileId - Unique compilation task ID assigned by HotSpot JIT
tier - Compilation tier level (1=C1 simple, 2=C1 limited, 3=C1 full, 4=C2/Server)
method - Fully qualified method signature (e.g. "com.helix.core.RuleCompiler::compile")
bytecodeSize - Size of method bytecode in bytes
isOsr - True if On-Stack Replacement (% compilation)
isSynchronized - True if synchronized method ('s')
isExceptionHolder - True if method has exception handlers ('!')
status - Status or deoptimization state (e.g. "NORMAL", "made not entrant", "made zombie")
timestamp - Instant when this event was parsed/recorded

public record CompilationEvent(long timestampMs, int compileId, int tier, String method, int bytecodeSize, boolean isOsr, boolean isSynchronized, boolean isExceptionHolder, String status, Instant timestamp) extends Record
Record representing a single JIT compilation event extracted from JVM PrintCompilation output.
  • Constructor Details

    • CompilationEvent

      public CompilationEvent(long timestampMs, int compileId, int tier, String method, int bytecodeSize, boolean isOsr, boolean isSynchronized, boolean isExceptionHolder, String status, Instant timestamp)
      Creates an instance of a CompilationEvent record class.
      Parameters:
      timestampMs - the value for the timestampMs record component
      compileId - the value for the compileId record component
      tier - the value for the tier record component
      method - the value for the method record component
      bytecodeSize - the value for the bytecodeSize record component
      isOsr - the value for the isOsr record component
      isSynchronized - the value for the isSynchronized record component
      isExceptionHolder - the value for the isExceptionHolder record component
      status - the value for the status record component
      timestamp - the value for the timestamp record component
    • CompilationEvent

      public CompilationEvent(long timestampMs, int compileId, int tier, String method, int bytecodeSize)
      Helper constructor for standard non-OSR, non-deoptimized events.
  • Method Details

    • isDeoptimization

      public boolean isDeoptimization()
      Checks if this event represents a deoptimization state transition.
    • 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.
    • timestampMs

      public long timestampMs()
      Returns the value of the timestampMs record component.
      Returns:
      the value of the timestampMs record component
    • compileId

      public int compileId()
      Returns the value of the compileId record component.
      Returns:
      the value of the compileId record component
    • tier

      public int tier()
      Returns the value of the tier record component.
      Returns:
      the value of the tier record component
    • method

      public String method()
      Returns the value of the method record component.
      Returns:
      the value of the method record component
    • bytecodeSize

      public int bytecodeSize()
      Returns the value of the bytecodeSize record component.
      Returns:
      the value of the bytecodeSize record component
    • isOsr

      public boolean isOsr()
      Returns the value of the isOsr record component.
      Returns:
      the value of the isOsr record component
    • isSynchronized

      public boolean isSynchronized()
      Returns the value of the isSynchronized record component.
      Returns:
      the value of the isSynchronized record component
    • isExceptionHolder

      public boolean isExceptionHolder()
      Returns the value of the isExceptionHolder record component.
      Returns:
      the value of the isExceptionHolder record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • timestamp

      public Instant timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component