WindowContentFrameStats
public
final
class
WindowContentFrameStats
extends FrameStats
implements
Parcelable
| java.lang.Object | ||
| ↳ | android.view.FrameStats | |
| ↳ | android.view.WindowContentFrameStats | |
This class contains window content frame statistics. For example, a window content
is rendred in frames when a view is scrolled. The frame statistics are a snapshot
for the time interval from FrameStats.getStartTimeNano() to FrameStats.getEndTimeNano().
The key idea is that in order to provide a smooth user experience an application
has to draw a frame at a specific time interval obtained by calling FrameStats.getRefreshPeriodNano(). If the application does not render a frame every refresh
period the user will see irregular UI transitions.
An application posts a frame for presentation by synchronously rendering its contents
in a buffer which is then posted or posting a buffer to which the application is
asychronously rendering the content via GL. After the frame is posted and rendered
(potentially asynchronosly) it is presented to the user. The time a frame was posted
can be obtained via getFramePostedTimeNano(int), the time a frame content
was rendered and ready for dsiplay (GL case) via getFrameReadyTimeNano(int),
and the time a frame was presented on the screen via FrameStats.getFramePresentedTimeNano(int).
Summary
Inherited constants |
|---|