Application program lag information acquisition method and device
An information collection and application technology, applied in the application field, can solve problems such as code intrusion, and achieve the effects of reducing impact, preventing freezes, and reducing burden
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] The embodiment of the present invention provides such as figure 1 The freeze information collection method of the application shown in the application is applicable to the Android system and includes:
[0026] S1. Determine the frame drawing object, and establish a corresponding callback mechanism;
[0027] S2. Obtain the stack of the main thread based on the asynchronous thread method according to the specified time interval;
[0028] S3. When the frame drawing execution time exceeds the freeze threshold, output a log including stacks.
[0029] The frame drawing object is a component that processes display rendering in the Android system, that is, a component that executes frame drawing. In this embodiment, it is mainly aimed at Choreographer. Then establish a callback mechanism, which is used to monitor the Choreographer, and when the Choreographer is executing a certain function / step, it returns a message to indicate that the corresponding function / step is executed...
Embodiment 2
[0045] This embodiment is used to specifically illustrate the freeze information collection process of the application:
[0046] 1. The refresh rate of the Android system is 16.67ms, because the refresh rate set by Android is 60FPS, that is, the refresh rate of 60 frames per second, and the refresh rate is about 16ms, so the system will send a Vsync signal (vertical synchronization) every 16.67ms signal) to trigger the rendering of the interface. If there are factors that cause stuttering in the page, it will cause frame loss and stuttering. (Correspondingly, 16.67ms can be set as the specified time interval above)
[0047] 2. Create an object that receives the Vsync signal, the object requests the Vsync signal and gets a callback, and performs the next step at the callback (that is, the doFrame() method in the monitoring callback of Choreographer).
[0048] 3. Record the time point of the previous frame drawing every time, and calculate the difference value based on the time...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com