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

Memory leakage detecting method and device

A technology of memory leak and detection method, applied in the field of communication equipment testing, can solve the problems of wasting memory, large system space, leakage, etc., and achieve the effect of convenient debugging

Active Publication Date: 2012-09-19
QINGDAO HISENSE MOBILE COMM TECH CO LTD
View PDF7 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Embodiments of the present invention provide a method and device for detecting memory leaks, which are used to solve the problem in the prior art that in the process of detecting system memory leaks, the existing memory leak detection program takes up a large amount of system space, has a large error rate, and requires a lot of manpower to be wasted. Memory leak determination and other issues

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
  • Memory leakage detecting method and device
  • Memory leakage detecting method and device
  • Memory leakage detecting method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In the embodiment of the present invention, each time the system starts an application program, the corresponding memory dynamic application information is established for the application program, and during the execution of any application program, the memory dynamic information corresponding to any application program is counted multiple times according to the preset method. Application information: analyze the changes of the dynamic memory application information according to the obtained statistical results, and determine that there is a memory leak in any application program when it is determined that the memory dynamic application information changes regularly. Combined with the statistics of key data in the memory application information, it is possible to easily determine whether there is a memory leak, accurately locate the location of the memory leak in the code, and facilitate system testers to debug the system for memory leaks.

[0020] Preferred embodiments ...

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 memory leakage detecting method and a memory leakage detecting device. The method comprises the following steps of: after a system starts one application program each time, establishing corresponding memory dynamic applying information aiming at the application program, and carrying out statistic on the memory dynamic applying information corresponding to any one application program for many times according to a preset way in the execution process of the any one application program; and analyzing the variation condition of the memory dynamic applying information according to each obtained statistic result, and judging that the memory leakage exists corresponding to the any one application program when the memory dynamic applying information is determined to generate regular variation. In such way, the memory leakage can be conveniently judged whether to exist or not; the position of the memory leakage in a code is accurately positioned; and a system tester can conveniently debug the system aiming at a memory leakage problem.

Description

technical field [0001] The invention relates to the field of communication equipment testing, in particular to a memory leak detection method and device. Background technique [0002] When the program is running, the memory dynamic space application statement in the program will apply to the system for space for storing data. At this time, the system will open up a dynamic space from the heap space of the memory and allocate it to the application program; when the program finishes running , the system releases the dynamic space opened up for the program so that other programs can continue to use the heap space when running; at this time, there may be a situation where the system fails to release the temporarily opened dynamic space in time due to a program design error. This situation is memory leak. [0003] Memory leaks will make the system heap space smaller and smaller, and the system running speed will slow down. When the memory leak reaches a certain level, the syste...

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/36
Inventor 张立震
Owner QINGDAO HISENSE MOBILE COMM 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