Record Class RenderTimings

java.lang.Object
java.lang.Record
ke.ric.renderer.api.RenderTimings
Record Components:
captureNanos - measured world-capture time in nanoseconds, or UNAVAILABLE
serializationNanos - scene serialization time in nanoseconds, or UNAVAILABLE
jniWallNanos - native-call wall time in nanoseconds, or UNAVAILABLE
renderCoreNanos - core-render work in nanoseconds, or UNAVAILABLE
decodeNanos - output/diagnostic decode time in nanoseconds, or UNAVAILABLE
copyNanos - immutable result-buffer copy time in nanoseconds, or UNAVAILABLE
conversionNanos - measured conversion time in nanoseconds, or UNAVAILABLE when outside provider measurement
totalNanos - 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

    Fields
    Modifier and Type
    Field
    Description
    static final long
    Used when a phase did not occur inside the provider; zero remains a real measured zero.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RenderTimings(long captureNanos, long serializationNanos, long renderCoreNanos, long conversionNanos, long totalNanos)
    Legacy timing shape; JNI wall, decode and copy phases are marked UNAVAILABLE.
    RenderTimings(long captureNanos, long serializationNanos, long jniWallNanos, long renderCoreNanos, long decodeNanos, long copyNanos, long conversionNanos, long totalNanos)
    Creates an instance of a RenderTimings record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the captureNanos record component.
    long
    Returns the value of the conversionNanos record component.
    long
    Returns the value of the copyNanos record component.
    long
    Returns the value of the decodeNanos record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the jniWallNanos record component.
    long
    Returns the value of the renderCoreNanos record component.
    long
    Returns the value of the serializationNanos record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the totalNanos record component.

    Methods inherited from class java.lang.Object

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

    • UNAVAILABLE

      public static final long UNAVAILABLE
      Used 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 marked UNAVAILABLE.
    • RenderTimings

      public RenderTimings(long captureNanos, long serializationNanos, long jniWallNanos, long renderCoreNanos, long decodeNanos, long copyNanos, long conversionNanos, long totalNanos)
      Creates an instance of a RenderTimings record class.
      Parameters:
      captureNanos - the value for the captureNanos record component
      serializationNanos - the value for the serializationNanos record component
      jniWallNanos - the value for the jniWallNanos record component
      renderCoreNanos - the value for the renderCoreNanos record component
      decodeNanos - the value for the decodeNanos record component
      copyNanos - the value for the copyNanos record component
      conversionNanos - the value for the conversionNanos record component
      totalNanos - the value for the totalNanos 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. All components in this record class 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.
    • captureNanos

      public long captureNanos()
      Returns the value of the captureNanos record component.
      Returns:
      the value of the captureNanos record component
    • serializationNanos

      public long serializationNanos()
      Returns the value of the serializationNanos record component.
      Returns:
      the value of the serializationNanos record component
    • jniWallNanos

      public long jniWallNanos()
      Returns the value of the jniWallNanos record component.
      Returns:
      the value of the jniWallNanos record component
    • renderCoreNanos

      public long renderCoreNanos()
      Returns the value of the renderCoreNanos record component.
      Returns:
      the value of the renderCoreNanos record component
    • decodeNanos

      public long decodeNanos()
      Returns the value of the decodeNanos record component.
      Returns:
      the value of the decodeNanos record component
    • copyNanos

      public long copyNanos()
      Returns the value of the copyNanos record component.
      Returns:
      the value of the copyNanos record component
    • conversionNanos

      public long conversionNanos()
      Returns the value of the conversionNanos record component.
      Returns:
      the value of the conversionNanos record component
    • totalNanos

      public long totalNanos()
      Returns the value of the totalNanos record component.
      Returns:
      the value of the totalNanos record component