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

Real-time frame data monitoring method and system for IOS application, device and storage medium

A monitoring system and real-time frame technology, applied in hardware monitoring, electrical digital data processing, error detection/correction, etc., can solve problems such as unable to manage IOS application running status, unable to measure user performance, etc., to achieve small memory usage and small code Effect

Active Publication Date: 2018-07-20
WUHAN DOUYU NETWORK TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the Instrument tool can only be used by programmers with application source code, so it must be connected to a computer, and it cannot measure the performance of users in real usage scenarios, that is, it cannot effectively manage the running status of IOS applications after they are released.

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
  • Real-time frame data monitoring method and system for IOS application, device and storage medium
  • Real-time frame data monitoring method and system for IOS application, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] see figure 1 As shown, the embodiment of the present invention provides a real-time frame number monitoring method for IOS applications:

[0039] S1, define an Objective-C class, and implement singleton loading of this class;

[0040] S2, create a CADisplayLink when the Objective-C class is initialized, and bind the callback method of the CADisplayLink, and register the CADisplayLink to the IOS running cycle;

[0041] S3, each time the IOS running cycle ends, call the callback method bound on CADisplayLink to calculate the current frame number; the callback method includes:

[0042] Read the attribute frame interval from CADisplayLink, calculate the time interval between two calls according to the timestamp of the current call to CADisplayLink and the timestamp of the last call to CADisplayLink, and calculate the time interval from the attribute frame interval of each call to CADisplayLink in the accumulated time interval The cumulative number of frames within the frame...

Embodiment 2

[0050] The embodiment of the invention discloses a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, a real-time frame number monitoring method for an IOS application is realized.

[0051] The storage medium of the embodiment of the present invention stores a real-time frame number monitoring method for implementing IOS applications. The required code for developing Objective-C classes at the IOS mobile terminal is small, and the memory occupation is also small during operation. Therefore, this program can realize IOS applications in mobile Effective management of the real-time frame number of the IOS application on the mobile terminal after the terminal is released.

Embodiment 3

[0053] The embodiment of the invention discloses an electronic device, which includes a memory and a processor, wherein a computer program running on the processor is stored in the memory, and a real-time frame number monitoring method of an IOS application is realized when the processor executes the computer program.

[0054] The computer program running on the processor is stored in the memory of the embodiment of the present invention, and the real-time frame number monitoring method of the IOS application is realized when the processor executes the computer program. The code required to develop Objective-C classes on the IOS mobile terminal is small, and the runtime memory is also small. Therefore, this solution can realize the effective management of the real-time frame number of the IOS application on the mobile terminal after the IOS application is released on the mobile terminal.

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 discloses a real-time frame data monitoring method and system for an IOS application, a device and a storage medium, and relates to the technical field of the IOS application. The methodcomprises the steps of defining a class of Objective-C, realizing singleton loading of the class, creating CADisplayLink during initialization of the class of the Objective-C, and registering the CADisplayLink to an IOS running loop; and when the IOS running loop is finished each time, calling a callback method bound on the CADisplayLink to calculate a current frame number. According to the scheme, real-time frame monitoring is realized by defining the class of the Objective-C; and when the class of the Objective-C is developed in an IOS mobile terminal, required codes are few and occupied memory is small during runtime, so that effective management of the real-time frame number of the IOS application of the mobile terminal after the IOS application is released in the mobile terminal canbe realized.

Description

technical field [0001] The invention relates to the technical field of IOS applications, in particular to a real-time frame number monitoring method, storage medium, equipment and system for IOS applications. Background technique [0002] During the development of mobile applications, some performance bottlenecks may be encountered, such as program running freezes or memory cannot be released correctly, which cannot be well monitored or fed back. The general method is to connect the mobile phone to the computer, and use the Instrument tool included in Xcode (an integrated development tool on the Mac OS X operating system) to monitor. The Instrument tool that comes with Xcode is a tool set that exists in the form of an independent APP and contains many powerful detection functions: including performance testing on real devices and simulators, performance analysis of APPs, and inspection of one or more applications or process behavior. The Instrument tool is mainly used to f...

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
IPC IPC(8): G06F11/30
CPCG06F11/302G06F11/3051G06F8/30G06F11/3419
Inventor 张骏张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
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