Memory leak detection method and device, equipment and medium

A memory leak and detection method technology, applied in the field of memory leak detection, can solve problems such as leaks, memory leaks, and undetectable memory, and achieve the effect of expanding the detection range and improving the accuracy

Pending Publication Date: 2022-04-08
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Objective-C language usually uses reference counting for memory management, so when multiple Objective-C objects strongly refer to each other and form circular references, these objects will not be released, resulting in memory leaks
[0003] In related technologies, the detection of memory leaks can be realized through the combination of leak detection tools and circular reference detection tools, but this method is limited by the objects detected by the tools. Unable to detect memory leaks

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein; A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only, and are not intended to limit the protection scope of the present disclosure.

[0026] It should be understood that the various steps described in the method implementations of the present disclosure may be executed in different orders, and / or executed in parallel. Additionally, method embodiments may include additional steps and / or omit performing illustrated steps. The scope of the present disclosure is not limited in this respect. ...

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 embodiment of the invention relates to a memory leak detection method and device, equipment and a medium, and the method comprises the steps that when a target page exits, object information of the target page is obtained, and the target page comprises a plurality of objects; determining a strong reference relationship between different objects according to the object information; determining candidate leakage objects according to a strong reference relationship among different objects; and determining a target leakage object according to the circular reference relationship of the candidate leakage objects. By adopting the technical scheme, the candidate leak object can be determined by determining the strong reference relationship among the different objects of the page, and then the leak object can be determined according to the circular reference relationship of the candidate leak object, so that compared with a detection object limited by a tool in the related technology, the memory leak detection range is expanded, and the memory leak detection efficiency is improved. And the accuracy of memory leak detection is improved.

Description

technical field [0001] The present disclosure relates to the technical field of memory processing, and in particular to a memory leak detection method, device, equipment and medium. Background technique [0002] The Objective-C language usually uses reference counting for memory management, so when multiple Objective-C objects strongly refer to each other and form a circular reference, these objects will not be released, resulting in memory leaks. [0003] In related technologies, the detection of memory leaks can be realized through the combination of leak detection tools and circular reference detection tools, but this method is limited by the objects detected by the tools. Unable to detect memory leaks. Contents of the invention [0004] In order to solve the above technical problems, the present disclosure provides a memory leak detection method, device, equipment and medium. [0005] An embodiment of the present disclosure provides a memory leak detection method, th...

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/07
Inventor 徐霜晴
Owner BEIJING BYTEDANCE NETWORK 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