Python code memory leak detection method based on mode
Patent Information
- Authority / Receiving Office
- CN Β· China
- Current Assignee / Owner
- HANGZHOU DIANZI UNIV
- Publication Date
- 2021-09-17
Smart Images

Figure 1 
Figure 2
Abstract
Description
technical field
[0001] The invention relates to the technical field of software, in particular to a pattern-based Python code memory leak detection method. Background technique
[0002] Memory leak is a common error in software engineering, that is, after the program dynamically applies for memory, it does not release the memory before it ends, resulting in long-term occupation of memory resources. Early in a project, memory leaks often don't have any noticeable symptoms. The occurrence of memory leaks is a continuous process. As they accumulate in the system, the number of leaked objects will continue to increase, resulting in a continuous decrease in memory resources in the system. When the memory resources in the system are exhausted, the application programs in the system will temporarily suspend, waiting for the reallocation of memory. If the memory reallocation process takes a long time, it will crash the system.
[0003] In recent years, programming languages ββhav...