Method for checking sofeware memory leak

A technology of memory leaks and inspection methods, applied in software testing/debugging and other directions, can solve problems such as slow operation, increased program code or capacity, and inability to perform inspections, achieving the effect of small impact and shortening the inspection time.

Inactive Publication Date: 2004-01-07
HUAWEI TECH CO LTD
View PDF0 Cites 45 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there are several shortcomings in using these tools: first, most of these tools are large-scale commercial software, and the cost is relatively high; second, these tools implement memory operation monitoring by inserting monitoring codes into executable files, making the software The program code or capacity will increase a lot, and it will run much slower. It can

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 for checking sofeware memory leak
  • Method for checking sofeware memory leak
  • Method for checking sofeware memory leak

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0018] figure 1 It is an embodiment flowchart of the method of the present invention. figure 1 The essence of the method is to embed a memory leak checking module in the application program, so that all memory application and release operations in the application program are performed through this module, and then record the memory blocks requested and released by the application program through this module. Address, time and other information to realize the monitoring of memory usage, so as to complete the inspection of application memory leaks.

[0019] according to figure 1 Implement the present invention, at first set a memory leak checking module through step 1, and embed it in the application program, and define a memory block recording table to record the information of the memory block applied for by other modules of the application program and 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 discloses a kind of examining method for software memory leakage. The method confirms the memory block which is applied by the application at first and the occupied time of different memory blocks, when the application runs, it records the applying and releasing information of the memory, and finds the memory block which is not released and exceeds the time, it ascertains the memory leakage point of the application; the examination to the memory leakage of application with the method has little impact on the application, it's easy to be realized and low cost, it applies to the long-term examination for the memory leakage, and helps to find the leakage fault emerged in actual application environment.

Description

technical field [0001] The invention relates to a method for testing software performance, in particular to a method for checking software memory leaks. Background technique [0002] Among the many defects of software (or application program), memory leak is a relatively difficult error to find. There may be various reasons for the software memory leak, for example, it may be caused by software design defects, or it may be caused by the operating system. In any case, if the software has a memory leak defect, it will reduce the available memory of the system and reduce the operating efficiency; for those software that need to run continuously for a long time, even if only a small amount of memory is leaked at a time, the long-term accumulation will lead to system memory loss. Exhausted until paralyzed. Therefore, software memory leak check is an important check item in the test. Currently, software memory leak checks are generally performed using some dedicated memory chec...

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 HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products