FrameDataApi31
public final class FrameDataApi31 extends FrameDataApi24
| java.lang.Object | |||
| ↳ | androidx.metrics.performance.FrameData | ||
| ↳ | androidx.metrics.performance.FrameDataApi24 | ||
| ↳ | androidx.metrics.performance.FrameDataApi31 |
This class stores duration data for a single frame.
This subclass of FrameData adds an additional value for frameDurationCpuNanos
| See also | |
|---|---|
jankHeuristicMultiplier |
|
putState |
Summary
Public constructors |
|---|
FrameDataApi31( |
Public methods |
|
|---|---|
@NonNull FrameData |
copy()Utility method which makes a copy of the items in this object (including copying the items in |
boolean |
|
final long |
The total time spent rendering this frame (in nanoseconds), which includes both CPU and GPU processing. |
final long |
The amount of time past the frame deadline that this frame took to complete. |
int |
hashCode() |
@NonNull String |
toString() |
Inherited methods |
||||||||
|---|---|---|---|---|---|---|---|---|
|
||||||||
|
Public constructors
Public methods
copy
public @NonNull FrameData copy()
Utility method which makes a copy of the items in this object (including copying the items in states into a new List). This is used internally to create a copy to pass along to listeners to avoid having a reference to the internally-mutable FrameData object.
getFrameDurationTotalNanos
public final long getFrameDurationTotalNanos()
The total time spent rendering this frame (in nanoseconds), which includes both CPU and GPU processing.
getFrameOverrunNanos
public final long getFrameOverrunNanos()
The amount of time past the frame deadline that this frame took to complete. A positive value indicates some jank, a negative value indicates that the frame was complete within the given deadline.