Package com.helix.profiler.jit
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 JITtier- 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 bytesisOsr- 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 Summary
ConstructorsConstructorDescriptionCompilationEvent(long timestampMs, int compileId, int tier, String method, int bytecodeSize) Helper constructor for standard non-OSR, non-deoptimized events.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 aCompilationEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebytecodeSizerecord component.intReturns the value of thecompileIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanChecks if this event represents a deoptimization state transition.booleanReturns the value of theisExceptionHolderrecord component.booleanisOsr()Returns the value of theisOsrrecord component.booleanReturns the value of theisSynchronizedrecord component.method()Returns the value of themethodrecord component.status()Returns the value of thestatusrecord component.inttier()Returns the value of thetierrecord component.Returns the value of thetimestamprecord component.longReturns the value of thetimestampMsrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aCompilationEventrecord class.- Parameters:
timestampMs- the value for thetimestampMsrecord componentcompileId- the value for thecompileIdrecord componenttier- the value for thetierrecord componentmethod- the value for themethodrecord componentbytecodeSize- the value for thebytecodeSizerecord componentisOsr- the value for theisOsrrecord componentisSynchronized- the value for theisSynchronizedrecord componentisExceptionHolder- the value for theisExceptionHolderrecord componentstatus- the value for thestatusrecord componenttimestamp- the value for thetimestamprecord component
-
CompilationEvent
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
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 '=='. -
timestampMs
public long timestampMs()Returns the value of thetimestampMsrecord component.- Returns:
- the value of the
timestampMsrecord component
-
compileId
public int compileId()Returns the value of thecompileIdrecord component.- Returns:
- the value of the
compileIdrecord component
-
tier
public int tier()Returns the value of thetierrecord component.- Returns:
- the value of the
tierrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
bytecodeSize
public int bytecodeSize()Returns the value of thebytecodeSizerecord component.- Returns:
- the value of the
bytecodeSizerecord component
-
isOsr
public boolean isOsr()Returns the value of theisOsrrecord component.- Returns:
- the value of the
isOsrrecord component
-
isSynchronized
public boolean isSynchronized()Returns the value of theisSynchronizedrecord component.- Returns:
- the value of the
isSynchronizedrecord component
-
isExceptionHolder
public boolean isExceptionHolder()Returns the value of theisExceptionHolderrecord component.- Returns:
- the value of the
isExceptionHolderrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-