Android APIs
public abstract class

FrameStats

extends Object
java.lang.Object
   ↳ android.view.FrameStats
Known Direct Subclasses

Class Overview

This is the base class for frame statistics.

Summary

Constants
long UNDEFINED_TIME_NANO Undefined time.
Public Constructors
FrameStats()
Public Methods
final long getEndTimeNano()
Gets the end time of the interval for which these statistics apply.
final int getFrameCount()
Gets the number of frames for which there is data.
final long getFramePresentedTimeNano(int index)
Get the time a frame at a given index was presented.
final long getRefreshPeriodNano()
Gets the refresh period of the display hosting the window(s) for which these statistics apply.
final long getStartTimeNano()
Gets the start time of the interval for which these statistics apply.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final long UNDEFINED_TIME_NANO

Added in API level 21

Undefined time.

Constant Value: -1 (0xffffffffffffffff)

Public Constructors

public FrameStats ()

Added in API level 21

Public Methods

public final long getEndTimeNano ()

Added in API level 21

Gets the end time of the interval for which these statistics apply. The end interval is the time when the last frame was presented.

Returns

public final int getFrameCount ()

Added in API level 21

Gets the number of frames for which there is data.

Returns
  • The number of frames.

public final long getFramePresentedTimeNano (int index)

Added in API level 21

Get the time a frame at a given index was presented.

Parameters
index The frame index.
Returns

public final long getRefreshPeriodNano ()

Added in API level 21

Gets the refresh period of the display hosting the window(s) for which these statistics apply.

Returns
  • The refresh period in nanoseconds.

public final long getStartTimeNano ()

Added in API level 21

Gets the start time of the interval for which these statistics apply. The start interval is the time when the first frame was presented.

Returns