tencent cloud

All product documents
Tencent Cloud Observability Platform
Lag and Frame Rate Monitoring
Last updated: 2024-05-14 12:36:06
Lag and Frame Rate Monitoring
Last updated: 2024-05-14 12:36:06

Prerequisites

Integration and Initialization has been Integration and Initialization.

Feature Configuration

Enabling Monitoring

Initialization requires enabling lag monitoring. Lag doesn't need instrumentation, while frame loss rate requires additional instrumentation. It is recommended to add tracking on scrolling lists, such as (ListView, GridView, and RecyclerView).

Frame Loss Rate Instrumentation

Call QAPM.beginScene("xxx scrolling", QAPM.ModeDropFrame) before each scroll.
Call QAPM.endScene("xxx scrolling", QAPM.ModeDropFrame) after a scroll ends.
This can generally be achieved by overriding the scrolling component's onScrollStateChanged method, as shown below:
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
if (scrollState == AbsListView.OnScrollListener.SCROLL_STATE_IDLE) {
QAPM.endScene("xxx scrolling", QAPM.ModeDropFrame); //xxx scrolling name can be customized by entering any name.
} else {
QAPM.beginScene("xxx scrolling", QAPM.ModeDropFrame);//xxx scrolling name can be customized by entering any name.
}

Verifying Whether the Feature Is Working Properly

Retrieval tag:QAPM_dropframe_DropFrameMonitor
After a scroll ends (endScene calling), the following log message indicates that the frame loss rate data has been stored in the local database:



Retrieval tag: [plugin::101]
The following log message indicates successful reporting of frame loss data that is stored in the app's local database.



Retrieval tag: QAPM_looper_LooperPrinter
The following log message indicates that Lag Monitoring is functioning properly:



The following log message indicates that Lag Reporting is functioning properly:




Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon