Record Class GuiFontStats
java.lang.Object
java.lang.Record
com.render.api.gui.GuiFontStats
- Record Components:
status- current native/resource availabilityresourceGeneration- generation used to invalidate retained layoutsshapeHits- shape-cache hitsshapeMisses- shape-cache misseslayoutHits- layout-cache hitslayoutMisses- layout-cache missesshapingNanos- cumulative HarfBuzz shaping timerasterNanos- cumulative FreeType raster timeglyphCount- cumulative shaped glyph countatlasPages- active atlas pagesatlasBytes- active atlas bytesuploadedBytes- cumulative dirty-rectangle upload bytesuploadCount- cumulative dirty uploadspageEvictions- cumulative whole-page evictionsrenderStateCount- cumulative submitted run render stateslcdRequestedRuns- runs explicitly requesting LCD coveragelcdFallbackRuns- 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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGuiFontStats(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 aGuiFontStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theatlasBytesrecord component.intReturns the value of theatlasPagesrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theglyphCountrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelayoutHitsrecord component.longReturns the value of thelayoutMissesrecord component.longReturns the value of thelcdFallbackRunsrecord component.longReturns the value of thelcdRequestedRunsrecord component.longReturns the value of thepageEvictionsrecord component.doublelongReturns the value of therasterNanosrecord component.longReturns the value of therenderStateCountrecord component.longReturns the value of theresourceGenerationrecord component.longReturns the value of theshapeHitsrecord component.longReturns the value of theshapeMissesrecord component.doublelongReturns the value of theshapingNanosrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theuploadCountrecord component.longReturns the value of theuploadedBytesrecord component.
-
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 aGuiFontStatsrecord class.- Parameters:
status- the value for thestatusrecord componentresourceGeneration- the value for theresourceGenerationrecord componentshapeHits- the value for theshapeHitsrecord componentshapeMisses- the value for theshapeMissesrecord componentlayoutHits- the value for thelayoutHitsrecord componentlayoutMisses- the value for thelayoutMissesrecord componentshapingNanos- the value for theshapingNanosrecord componentrasterNanos- the value for therasterNanosrecord componentglyphCount- the value for theglyphCountrecord componentatlasPages- the value for theatlasPagesrecord componentatlasBytes- the value for theatlasBytesrecord componentuploadedBytes- the value for theuploadedBytesrecord componentuploadCount- the value for theuploadCountrecord componentpageEvictions- the value for thepageEvictionsrecord componentrenderStateCount- the value for therenderStateCountrecord componentlcdRequestedRuns- the value for thelcdRequestedRunsrecord componentlcdFallbackRuns- the value for thelcdFallbackRunsrecord component
-
-
Method Details
-
shapingMillis
public double shapingMillis() -
rasterMillis
public double rasterMillis() -
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
status
-
resourceGeneration
public long resourceGeneration()Returns the value of theresourceGenerationrecord component.- Returns:
- the value of the
resourceGenerationrecord component
-
shapeHits
-
shapeMisses
public long shapeMisses()Returns the value of theshapeMissesrecord component.- Returns:
- the value of the
shapeMissesrecord component
-
layoutHits
public long layoutHits()Returns the value of thelayoutHitsrecord component.- Returns:
- the value of the
layoutHitsrecord component
-
layoutMisses
public long layoutMisses()Returns the value of thelayoutMissesrecord component.- Returns:
- the value of the
layoutMissesrecord component
-
shapingNanos
public long shapingNanos()Returns the value of theshapingNanosrecord component.- Returns:
- the value of the
shapingNanosrecord component
-
rasterNanos
public long rasterNanos()Returns the value of therasterNanosrecord component.- Returns:
- the value of the
rasterNanosrecord component
-
glyphCount
public long glyphCount()Returns the value of theglyphCountrecord component.- Returns:
- the value of the
glyphCountrecord component
-
atlasPages
public int atlasPages()Returns the value of theatlasPagesrecord component.- Returns:
- the value of the
atlasPagesrecord component
-
atlasBytes
public long atlasBytes()Returns the value of theatlasBytesrecord component.- Returns:
- the value of the
atlasBytesrecord component
-
uploadedBytes
public long uploadedBytes()Returns the value of theuploadedBytesrecord component.- Returns:
- the value of the
uploadedBytesrecord component
-
uploadCount
public long uploadCount()Returns the value of theuploadCountrecord component.- Returns:
- the value of the
uploadCountrecord component
-
pageEvictions
public long pageEvictions()Returns the value of thepageEvictionsrecord component.- Returns:
- the value of the
pageEvictionsrecord component
-
renderStateCount
public long renderStateCount()Returns the value of therenderStateCountrecord component.- Returns:
- the value of the
renderStateCountrecord component
-
lcdRequestedRuns
public long lcdRequestedRuns()Returns the value of thelcdRequestedRunsrecord component.- Returns:
- the value of the
lcdRequestedRunsrecord component
-
lcdFallbackRuns
public long lcdFallbackRuns()Returns the value of thelcdFallbackRunsrecord component.- Returns:
- the value of the
lcdFallbackRunsrecord component
-