FrameDataApi24
public class FrameDataApi24 extends FrameData
| java.lang.Object | ||
| ↳ | androidx.metrics.performance.FrameData | |
| ↳ | androidx.metrics.performance.FrameDataApi24 |
FrameDataApi31 |
This class stores duration data for a single frame. |
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 |
|---|
FrameDataApi24( |
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 time spent in the non-GPU portions of this frame (in nanoseconds). |
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.
getFrameDurationCpuNanos
public final long getFrameDurationCpuNanos()
The time spent in the non-GPU portions of this frame (in nanoseconds). This includes the time spent on the UI thread frameDurationUiNanos plus time spent on the RenderThread.