Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

IOS lag monitoring method and system

A monitoring system and lagging technology, applied in hardware monitoring, instrumentation, electrical digital data processing, etc., can solve problems such as cover-up, difficulty in troubleshooting, and inability to monitor GPU

Inactive Publication Date: 2020-06-05
苏州极光无限信息技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, all major companies have their own IOS (Apple's mobile operating system) platform distress monitoring solution. The basic principle is to use a separate sub-thread to regularly monitor the RunLoop of the main thread (which is a cycle for receiving and processing asynchronous message events) ) state to calculate the screen refresh rate. This solution mainly solves the freeze caused by the high occupancy rate of the CPU (central processing unit) of the main thread. At present, there are various reasons for the freeze of the App. The main thread CPU Taking too long is only one of the reasons. The bottleneck caused by the GPU (Graphics Processing Unit) is also an important reason. The existing solutions cannot monitor the bottleneck of the GPU, which covers up the real reason and leads to problems. investigation is more difficult

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • IOS lag monitoring method and system
  • IOS lag monitoring method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] Such as figure 1 A kind of IOS freeze monitoring method of the present invention as shown, comprises the following steps:

[0025] S1: When there is a rendering task, first create a new first layer in the GPU;

[0026] The IOS system rendering framework calls the drawing method to obtain the drawing instructions sent by the CPU, and then submits the instructions to the GPU for rendering. During the rendering period of the GPU, the rendering framework will occupy the Runloop of the thread that currently submits the drawing instructions. On the IOS platform, Apple requires that these UI operations must be performed on the main thread, which causes the Runloop of the CPU's main thread to be occupied when the GPU is performing rendering operations, making it impossible to determine whether the CPU is stuck due to the GPU's lag, and thus It directly affects the accuracy of monitoring, so the present invention sets up a new layer Layer when receiving a rendering instruction,...

Embodiment 2

[0033] A monitoring system for IOS freezing, comprising:

[0034] Rendering processing module: when there is a rendering task, a new first layer is first established in the GPU, and the drawing instruction is submitted from the background to the GPU through the first layer, and then the GPU performs subsequent rendering instructions;

[0035] Monitoring module: establish a first sub-thread for monitoring the GPU in the CPU, and monitor the freeze of the GPU through the first sub-thread.

[0036] In a preferred embodiment, it also includes:

[0037] Monitoring storage module: establish a new processing sub-thread in the CPU, process the GPU processing frequency output by the first sub-thread through the processing sub-thread, and save the result as monitoring data.

[0038] The present invention mainly focuses on providing a method for independently monitoring the GPU of the IOS system to ensure the accuracy of CPU monitoring. The processing parts that are not described in the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to an IOS lag monitoring method and an IOS lag monitoring system. The IOS lag monitoring method comprises the following steps of: S1, establishing a new first layer in a GPU whena rendering task exists; S2, submitting a drawing instruction to the GPU from a background through using the first layer; S3, and establishing a first sub-thread for monitoring the GPU in the CPU, and carrying out lag monitoring on the GPU through using the first sub-thread. According to the IOS lag monitoring method, when the rendering instruction is received, the new layer Layer is established,and the layer Layer can submit the drawing instruction to the GPU from the background thread, so that the Runloop of the main thread is not occupied, the monitoring of CPU lagging is not influenced,and the frame processing frequency of the GPU is independently monitored.

Description

technical field [0001] The invention relates to a monitoring method and system for IOS freezing, belonging to the technical field of IOS applications. Background technique [0002] At present, all major companies have their own IOS (Apple's mobile operating system) platform distress monitoring solution. The basic principle is to use a separate sub-thread to regularly monitor the RunLoop of the main thread (which is a cycle for receiving and processing asynchronous message events) ) state to calculate the screen refresh rate. This solution mainly solves the freeze caused by the high occupancy rate of the CPU (central processing unit) of the main thread. At present, there are various reasons for the freeze of the App. The main thread CPU Taking too long is only one of the reasons. The bottleneck caused by the GPU (Graphics Processing Unit) is also an important reason. The existing solutions cannot monitor the bottleneck of the GPU, which covers up the real reason and leads to ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/30
CPCG06F11/302G06F11/3024
Inventor 冯继强丁捷
Owner 苏州极光无限信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products