java.lang.Object | |
↳ | com.htc.utils.perf.FramerateMonitor |
Instance of FramerateMonitor can help to monitor frame rate of several types of animation. It's mainly used to monitor Sense 4.0 animations currently
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ID_ANIMATION | Animation type ID | |||||||||
int | ID_LISTVIEW_FLING | Deprecated, do not use it | |||||||||
int | ID_LISTVIEW_INTRO | Deprecated, do not use it | |||||||||
int | ID_LISTVIEW_SCROLL | Deprecated, do not use it | |||||||||
int | ID_WINDOW_TRANSITION | Deprecated, do not use it | |||||||||
int | MONITOR_TYPE_GLSURFACEVIEW | Monitor type for GLSurfaceview, mainly used in OpenGL views | |||||||||
int | MONITOR_TYPE_SURFACEFLINGER | Monitor type for SurfaceFlinger, mainly used in 3D animations. | |||||||||
int | MONITOR_TYPE_VIEWROOT | Monitor type for ViewRoot, mainly used in conventional 2D views |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Animation owners should call this function to get a new instance of FramerateMonitor before start logging.
| |||||||||||
Call this function to start frame rate logging.
| |||||||||||
Stop logging and also output result to device log.
| |||||||||||
Animation owners should never call this API.
| |||||||||||
{@Hide }
Animation owners should never call this API.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Animation type ID
Deprecated, do not use it
Deprecated, do not use it
Deprecated, do not use it
Deprecated, do not use it
Monitor type for GLSurfaceview, mainly used in OpenGL views
Monitor type for SurfaceFlinger, mainly used in 3D animations. We prefer MONITOR_TYPE_VIEWROOT and MONITOR_TYPE_GLSURFACEVIEW if possible, becuase MONITOR_TYPE_SURFACEFLINGER refers to whole screen update but not only target view.
Monitor type for ViewRoot, mainly used in conventional 2D views
Animation owners should call this function to get a new instance of FramerateMonitor before start logging. It returns null when parameters are not valid or in non-debug build. So, you should always check nullity before using the returned instance.
monitorType | One of monitor types scecified in field. |
---|---|
view | Target view. |
animationType | Always use FramerateMonitor.ID_ANIMATION here. |
description | Information about animation type. |
Call this function to start frame rate logging.
Animation owners should never call this API. It's called in framework component to update frame rate of some record, lower level will call timer function to get elapsed time.
{@Hide } Animation owners should never call this API. It's called by framework to update frame rate of all record with specified type, lower level will call timer function to get elapsed time.