public abstract class FrameStats extends Object
Modifier and Type | Field and Description |
---|---|
protected long[] |
mFramesPresentedTimeNano |
protected long |
mRefreshPeriodNano |
static long |
UNDEFINED_TIME_NANO
Undefined time.
|
Constructor and Description |
---|
FrameStats() |
Modifier and Type | Method and Description |
---|---|
long |
getEndTimeNano()
Gets the end time of the interval for which these statistics
apply.
|
int |
getFrameCount()
Gets the number of frames for which there is data.
|
long |
getFramePresentedTimeNano(int index)
Get the time a frame at a given index was presented.
|
long |
getRefreshPeriodNano()
Gets the refresh period of the display hosting the window(s) for
which these statistics apply.
|
long |
getStartTimeNano()
Gets the start time of the interval for which these statistics
apply.
|
public static final long UNDEFINED_TIME_NANO
protected long mRefreshPeriodNano
protected long[] mFramesPresentedTimeNano
public final long getRefreshPeriodNano()
public final int getFrameCount()
public final long getStartTimeNano()
UNDEFINED_TIME_NANO
if there is no frame data.public final long getEndTimeNano()
UNDEFINED_TIME_NANO
if there is no frame data.public final long getFramePresentedTimeNano(int index)
index
- The frame index.UNDEFINED_TIME_NANO
if the frame is not presented yet.