Record Class GuiFontStats

java.lang.Object
java.lang.Record
com.render.api.gui.GuiFontStats
Record Components:
status - current native/resource availability
resourceGeneration - generation used to invalidate retained layouts
shapeHits - shape-cache hits
shapeMisses - shape-cache misses
layoutHits - layout-cache hits
layoutMisses - layout-cache misses
shapingNanos - cumulative HarfBuzz shaping time
rasterNanos - cumulative FreeType raster time
glyphCount - cumulative shaped glyph count
atlasPages - active atlas pages
atlasBytes - active atlas bytes
uploadedBytes - cumulative dirty-rectangle upload bytes
uploadCount - cumulative dirty uploads
pageEvictions - cumulative whole-page evictions
renderStateCount - cumulative submitted run render states
lcdRequestedRuns - runs explicitly requesting LCD coverage
lcdFallbackRuns - requested LCD runs rendered with grayscale coverage

public record GuiFontStats(GuiFontStats.Status status, long resourceGeneration, long shapeHits, long shapeMisses, long layoutHits, long layoutMisses, long shapingNanos, long rasterNanos, long glyphCount, int atlasPages, long atlasBytes, long uploadedBytes, long uploadCount, long pageEvictions, long renderStateCount, long lcdRequestedRuns, long lcdFallbackRuns) extends Record
Point-in-time browser-grade text engine counters.
  • Constructor Details

    • GuiFontStats

      public GuiFontStats(GuiFontStats.Status status, long resourceGeneration, long shapeHits, long shapeMisses, long layoutHits, long layoutMisses, long shapingNanos, long rasterNanos, long glyphCount, int atlasPages, long atlasBytes, long uploadedBytes, long uploadCount, long pageEvictions, long renderStateCount, long lcdRequestedRuns, long lcdFallbackRuns)
      Creates an instance of a GuiFontStats record class.
      Parameters:
      status - the value for the status record component
      resourceGeneration - the value for the resourceGeneration record component
      shapeHits - the value for the shapeHits record component
      shapeMisses - the value for the shapeMisses record component
      layoutHits - the value for the layoutHits record component
      layoutMisses - the value for the layoutMisses record component
      shapingNanos - the value for the shapingNanos record component
      rasterNanos - the value for the rasterNanos record component
      glyphCount - the value for the glyphCount record component
      atlasPages - the value for the atlasPages record component
      atlasBytes - the value for the atlasBytes record component
      uploadedBytes - the value for the uploadedBytes record component
      uploadCount - the value for the uploadCount record component
      pageEvictions - the value for the pageEvictions record component
      renderStateCount - the value for the renderStateCount record component
      lcdRequestedRuns - the value for the lcdRequestedRuns record component
      lcdFallbackRuns - the value for the lcdFallbackRuns record component
  • Method Details

    • shapingMillis

      public double shapingMillis()
    • rasterMillis

      public double rasterMillis()
    • 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 the compare method from their corresponding wrapper classes.
      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.
    • status

      public GuiFontStats.Status status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • resourceGeneration

      public long resourceGeneration()
      Returns the value of the resourceGeneration record component.
      Returns:
      the value of the resourceGeneration record component
    • shapeHits

      public long shapeHits()
      Returns the value of the shapeHits record component.
      Returns:
      the value of the shapeHits record component
    • shapeMisses

      public long shapeMisses()
      Returns the value of the shapeMisses record component.
      Returns:
      the value of the shapeMisses record component
    • layoutHits

      public long layoutHits()
      Returns the value of the layoutHits record component.
      Returns:
      the value of the layoutHits record component
    • layoutMisses

      public long layoutMisses()
      Returns the value of the layoutMisses record component.
      Returns:
      the value of the layoutMisses record component
    • shapingNanos

      public long shapingNanos()
      Returns the value of the shapingNanos record component.
      Returns:
      the value of the shapingNanos record component
    • rasterNanos

      public long rasterNanos()
      Returns the value of the rasterNanos record component.
      Returns:
      the value of the rasterNanos record component
    • glyphCount

      public long glyphCount()
      Returns the value of the glyphCount record component.
      Returns:
      the value of the glyphCount record component
    • atlasPages

      public int atlasPages()
      Returns the value of the atlasPages record component.
      Returns:
      the value of the atlasPages record component
    • atlasBytes

      public long atlasBytes()
      Returns the value of the atlasBytes record component.
      Returns:
      the value of the atlasBytes record component
    • uploadedBytes

      public long uploadedBytes()
      Returns the value of the uploadedBytes record component.
      Returns:
      the value of the uploadedBytes record component
    • uploadCount

      public long uploadCount()
      Returns the value of the uploadCount record component.
      Returns:
      the value of the uploadCount record component
    • pageEvictions

      public long pageEvictions()
      Returns the value of the pageEvictions record component.
      Returns:
      the value of the pageEvictions record component
    • renderStateCount

      public long renderStateCount()
      Returns the value of the renderStateCount record component.
      Returns:
      the value of the renderStateCount record component
    • lcdRequestedRuns

      public long lcdRequestedRuns()
      Returns the value of the lcdRequestedRuns record component.
      Returns:
      the value of the lcdRequestedRuns record component
    • lcdFallbackRuns

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