Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method and device for detecting memory leakage of mobile terminal

A technology for memory leaks and mobile terminals, which is applied in the field of detecting memory leaks in mobile terminals, can solve the problems of not being applicable to mobile terminals, occupying a large memory space, and multiple system resources, and achieves the effect of uncomplicated implementation methods

Inactive Publication Date: 2009-12-02
QINGDAO HISENSE MOBILE COMM TECH CO LTD
View PDF0 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] However, the tools for realizing the interception of the malloc function and the free function are often more complicated, and need to take up a large amount of memory space and more system resources. For mobile terminals, due to the relatively tight internal memory and the characteristics of real-time response for user operations, prior art The method does not apply to mobile terminals

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
  • Method and device for detecting memory leakage of mobile terminal
  • Method and device for detecting memory leakage of mobile terminal
  • Method and device for detecting memory leakage of mobile terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The embodiment of the present invention provides a method for detecting memory leaks applied to a mobile terminal. When the application program is running, if the application program performs a memory allocation operation, record the relevant information of the allocated memory in the record table; if After the memory release operation is performed, the relevant information corresponding to the released memory is deleted from the record table. In this way, the situation of the memory leak can be judged by detecting the relevant information of the memory that has not been deleted in the record table. Moreover, in the method of the embodiment of the present invention, the dynamic memory allocation macro (such as mallco macro) with the function of recording the relevant information of the allocated memory into the record table is defined in the header file, and the memory corresponding to the memory to be released Related information The dynamic memory release macro (such ...

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 the field of mobile communication, in particular to technology for detecting memory leakage in a mobile terminal. The invention provides a device and a method for detecting memory leakage of the mobile terminal. The method comprises the following steps that: in an operation process of an application program of the mobile terminal, if a first execution code is operated, dynamic memory distribution is carried out according to the first execution code, and information related to the distributed memory is recorded in a memory distribution logsheet; and if a second execution code is operated, dynamic memory release is carried out according to the second execution code, and related information corresponding to the released memory is deleted from the memory distribution logsheet. As each distributed memory is traced by the content recorded in the logsheet, memory leakage can be detected in time.

Description

technical field [0001] The invention relates to the field of mobile communication, in particular to a technology for detecting memory leaks in mobile terminals. Background technique [0002] Memory leak refers to the situation where the space dynamically allocated by the dynamic storage allocation function (malloc function) is not released (free) after use, and as a result, the allocated space is always occupied and cannot be used by other programs. The common memory leak is the leak of heap memory. Heap memory refers to the memory allocated by the program from the heap, of any size (the size of the memory block can be determined during the program runtime), and the released memory must be displayed after use. The application generally uses the function malloc to allocate a block of memory from the heap. After using it, the program should be responsible for calling the free function to release the memory block. Otherwise, the memory cannot be used again, and the memory is co...

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/36
Inventor 王磊
Owner QINGDAO HISENSE MOBILE COMM TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More