Memory leak detection device and method and terminal

A technology of memory leak and detection device

Inactive Publication Date: 2015-12-30
NUBIA TECHNOLOGY CO LTD
View PDF7 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to propose a memory leak detection device, method, and terminal,

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 device and method and terminal
  • Memory leak detection device and method and terminal
  • Memory leak detection device and method and terminal

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0096] Based on the first embodiment of the above-mentioned memory leak detection device, the device also includes: an acquisition module 13, which is used to acquire a test script, and the test script is a shell script;

[0097] The collection module 10 is also used to run a shell script to collect memory sampling information of the process under test.

[0098] The acquisition module 13 can be directly read from the memory of the terminal where the process under test is located, and can also obtain the test script through other terminals that are wired or wirelessly connected to the terminal where the process under test is located. In one embodiment, If the terminal where the tested process is located is an Android mobile phone, the terminal connected to the Android mobile phone is a tablet computer, and a test script for memory leak detection is stored on the tablet computer, and the acquisition module 13 obtains the test script from the tablet computer , and save the test s...

no. 2 example

[0135] Based on the first embodiment or the second embodiment of the above memory leak detection method, the method further includes:

[0136] S14. When the process under test has a memory leak, locate the object or code segment where the process under test has a memory leak according to the change trend of the memory usage value of the process under test.

[0137] When there is a memory leak in the process under test, it may only be caused by a certain part of the code segment or object of the process under test that causes the memory leak during runtime. In this step, locate the Objects or code segments that have memory leaks in the measured process, for example, find the time point when the memory usage value is increasing from the change trend of the memory usage value of the measured process, and then find that at this time point, the user performed some What operation, and then find the corresponding object or code segment, that is, find the object or code segment that h...

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 leak detection device. The device comprises a collection module used for collecting memory sampling information of a detected progress, a generation module used for generating the change trend of the memory occupation value of the detected progress, and a detection module used for judging whether memory leak happens to the detected progress or not according to the change trend of the memory occupation value of the detected progress. The memory sampling information includes the sampling time and the memory occupation value, at the sampling time, of the detected progress. The invention further discloses a memory leak detection method and a terminal. By means of the memory leak detection device and method and the terminal, the memory leak detection accuracy can be improved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a memory leak detection device and method, and a terminal. Background technique [0002] In computer science, a memory leak refers to the allocation of memory for a process to use, but the process does not release the memory after using it, resulting in the allocation of memory cannot be recycled. As the process runs, the available memory in the system will become less and less, causing the system to be paralyzed due to insufficient memory, causing serious impact. Memory leaks may be caused by the developer's poor consideration, hidden dangers in the written code, and the failure to release the memory in time, or it may be caused by an exception in the system that did not release the memory. [0003] At present, there are many methods for testing memory leaks, most of which involve related software codes. It is through walkthroughs and repeated debugging to locate memory leaks in the co...

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 NUBIA TECHNOLOGY 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