Package ke.ric.renderer.api
Record Class RenderTimings
java.lang.Object
java.lang.Record
ke.ric.renderer.api.RenderTimings
- Record Components:
captureNanos- measured world-capture time in nanoseconds, or UNAVAILABLEserializationNanos- scene serialization time in nanoseconds, or UNAVAILABLEjniWallNanos- native-call wall time in nanoseconds, or UNAVAILABLErenderCoreNanos- core-render work in nanoseconds, or UNAVAILABLEdecodeNanos- output/diagnostic decode time in nanoseconds, or UNAVAILABLEcopyNanos- immutable result-buffer copy time in nanoseconds, or UNAVAILABLEconversionNanos- measured conversion time in nanoseconds, or UNAVAILABLE when outside provider measurementtotalNanos- total measured request time in nanoseconds, or UNAVAILABLE
public record RenderTimings(long captureNanos, long serializationNanos, long jniWallNanos, long renderCoreNanos, long decodeNanos, long copyNanos, long conversionNanos, long totalNanos)
extends Record
Measured nanosecond durations for the provider phases represented in a result.
UNAVAILABLE distinguishes work outside a provider measurement boundary from a measured
duration of zero.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longUsed when a phase did not occur inside the provider; zero remains a real measured zero. -
Constructor Summary
ConstructorsConstructorDescriptionRenderTimings(long captureNanos, long serializationNanos, long renderCoreNanos, long conversionNanos, long totalNanos) Legacy timing shape; JNI wall, decode and copy phases are markedUNAVAILABLE.RenderTimings(long captureNanos, long serializationNanos, long jniWallNanos, long renderCoreNanos, long decodeNanos, long copyNanos, long conversionNanos, long totalNanos) Creates an instance of aRenderTimingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecaptureNanosrecord component.longReturns the value of theconversionNanosrecord component.longReturns the value of thecopyNanosrecord component.longReturns the value of thedecodeNanosrecord 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 thejniWallNanosrecord component.longReturns the value of therenderCoreNanosrecord component.longReturns the value of theserializationNanosrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalNanosrecord component.
-
Field Details
-
UNAVAILABLE
public static final long UNAVAILABLEUsed when a phase did not occur inside the provider; zero remains a real measured zero.- See Also:
-
-
Constructor Details
-
RenderTimings
public RenderTimings(long captureNanos, long serializationNanos, long renderCoreNanos, long conversionNanos, long totalNanos) Legacy timing shape; JNI wall, decode and copy phases are markedUNAVAILABLE. -
RenderTimings
public RenderTimings(long captureNanos, long serializationNanos, long jniWallNanos, long renderCoreNanos, long decodeNanos, long copyNanos, long conversionNanos, long totalNanos) Creates an instance of aRenderTimingsrecord class.- Parameters:
captureNanos- the value for thecaptureNanosrecord componentserializationNanos- the value for theserializationNanosrecord componentjniWallNanos- the value for thejniWallNanosrecord componentrenderCoreNanos- the value for therenderCoreNanosrecord componentdecodeNanos- the value for thedecodeNanosrecord componentcopyNanos- the value for thecopyNanosrecord componentconversionNanos- the value for theconversionNanosrecord componenttotalNanos- the value for thetotalNanosrecord 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. All components in this record class are compared with '=='. -
captureNanos
public long captureNanos()Returns the value of thecaptureNanosrecord component.- Returns:
- the value of the
captureNanosrecord component
-
serializationNanos
public long serializationNanos()Returns the value of theserializationNanosrecord component.- Returns:
- the value of the
serializationNanosrecord component
-
jniWallNanos
public long jniWallNanos()Returns the value of thejniWallNanosrecord component.- Returns:
- the value of the
jniWallNanosrecord component
-
renderCoreNanos
public long renderCoreNanos()Returns the value of therenderCoreNanosrecord component.- Returns:
- the value of the
renderCoreNanosrecord component
-
decodeNanos
public long decodeNanos()Returns the value of thedecodeNanosrecord component.- Returns:
- the value of the
decodeNanosrecord component
-
copyNanos
public long copyNanos()Returns the value of thecopyNanosrecord component.- Returns:
- the value of the
copyNanosrecord component
-
conversionNanos
public long conversionNanos()Returns the value of theconversionNanosrecord component.- Returns:
- the value of the
conversionNanosrecord component
-
totalNanos
public long totalNanos()Returns the value of thetotalNanosrecord component.- Returns:
- the value of the
totalNanosrecord component
-