Record Class RenderingStats
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.map.RenderingStats
public record RenderingStats(double encodingTime, double renderingTime, long frameCount, long drawCallCount, long totalDrawCallCount)
extends Record
Rendering statistics copied from a native render-frame event.
-
Constructor Summary
ConstructorsConstructorDescriptionRenderingStats(double encodingTime, double renderingTime, long frameCount, long drawCallCount, long totalDrawCallCount) Creates an instance of aRenderingStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedrawCallCountrecord component.doubleReturns the value of theencodingTimerecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theframeCountrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of therenderingTimerecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalDrawCallCountrecord component.
-
Constructor Details
-
RenderingStats
public RenderingStats(double encodingTime, double renderingTime, long frameCount, long drawCallCount, long totalDrawCallCount) Creates an instance of aRenderingStatsrecord class.- Parameters:
encodingTime- the value for theencodingTimerecord componentrenderingTime- the value for therenderingTimerecord componentframeCount- the value for theframeCountrecord componentdrawCallCount- the value for thedrawCallCountrecord componenttotalDrawCallCount- the value for thetotalDrawCallCountrecord component
-
-
Method Details
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
encodingTime
public double encodingTime()Returns the value of theencodingTimerecord component.- Returns:
- the value of the
encodingTimerecord component
-
renderingTime
public double renderingTime()Returns the value of therenderingTimerecord component.- Returns:
- the value of the
renderingTimerecord component
-
frameCount
public long frameCount()Returns the value of theframeCountrecord component.- Returns:
- the value of the
frameCountrecord component
-
drawCallCount
public long drawCallCount()Returns the value of thedrawCallCountrecord component.- Returns:
- the value of the
drawCallCountrecord component
-
totalDrawCallCount
public long totalDrawCallCount()Returns the value of thetotalDrawCallCountrecord component.- Returns:
- the value of the
totalDrawCallCountrecord component
-