Memory leak detection method and device, electronic equipment and readable storage medium

A memory leak and detection method technology, applied in the computer field, can solve the problems of high cost and low efficiency of manual detection, and achieve the effect of reducing labor cost and improving detection efficiency

Pending Publication Date: 2020-12-22
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The invention provides a memory leak detection method, device, electronic equipment and readable storage medium, so as to manually detect the problem of high cost and low efficiency

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 leak detection method and device, electronic equipment and readable storage medium
  • Memory leak detection method and device, electronic equipment and readable storage medium
  • Memory leak detection method and device, electronic equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0027] figure 1 It is a flow chart of the steps of a memory leak detection method provided by an embodiment of the present invention, such as figure 1 As shown, the method may include:

[0028] Step 101: If a page object destruction instruction is received, call a preset destruction program, the preset destruction program is used to destroy the page object to be destroyed indicated by the page object destruction instruction during operation, a...

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 provides a memory leak detection method and device, electronic equipment and a readable storage medium, and belongs to the technical field of computers. According to the memory leak detection method provided by the embodiment of the invention, if the page object destroying instruction is received, the preset destroying program is called, the preset destroying program is used for destroying the page object to be destroyed indicated by the page object destroying instruction in the running process, and detecting whether the page object to be destroyed is successfully destroyed or not after the preset duration to obtain a detection result, then,calling a preset reminding program under the condition that the detection result is the first detection result, wherein the first detection result represents that the to-be-destroyed page object is not successfully destroyed, if the preset reminding program is successfully called, it is determined that memory leakage exists, and a memory leakage reminding message is output through the preset reminding program. Therefore, by automatically detecting the memory leak, the labor cost required by detection can be reduced to a certain extent, and the detection efficiency is improved.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a memory leak detection method, device, electronic equipment and a readable storage medium. Background technique [0002] During the use of the application, different objects will be created, for example, when a new page is opened, corresponding objects will be created. Objects occupy memory, and the memory will be released after the object is destroyed. If the object is not destroyed normally, and the memory is not released normally, it is called "memory leak". Due to memory leaks, memory will be occupied abnormally, which may lead to failures. Therefore, how to detect memory leaks has become a widely concerned issue. [0003] In the prior art, it is often determined whether there is a memory leak by manually controlling the application program to create an object, and then controlling the destruction of the object, and comparing the amount of memory when the ob...

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
CPCG06F11/366G06F11/3644
Inventor李昕越梁爱武
OwnerBEIJING QIYI CENTURY SCI & TECH CO LTD