Unlock instant, AI-driven research and patent intelligence for your innovation.

Automatic test method and device of memory leakage and mobile terminal

A technology for automated testing and memory leaks, applied in software testing/debugging, etc., can solve problems such as difficult to locate memory leaks, difficult to detect, low memory accuracy, etc., to achieve the effect of ensuring accuracy and effectiveness, and improving test efficiency

Active Publication Date: 2016-03-02
XIAMEN MEITU MOBILE TECH CO LTD
View PDF4 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method requires a wired connection between the mobile terminal and the PC, and it is difficult to detect when the memory growth rate is very small; in addition, there is another way that is semi-detached from the PC by writing automated test scripts, executing the scripts, and when the use case ends Then connect to the PC and extract the memory information file. However, the accuracy of judging the memory leak by this method is not high. The system will automatically release the memory and the information in the extracted file will be incomplete. It is still difficult for software developers to locate the problem of the memory leak.

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
  • Automatic test method and device of memory leakage and mobile terminal
  • Automatic test method and device of memory leakage and mobile terminal
  • Automatic test method and device of memory leakage and mobile terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0031] figure 1 A schematic diagram is constructed for a mobile terminal 100 according to an embodiment of the present invention. refer to figure 1 , the mobile terminal 100 includes: a memory interface 102 , one or more data processors, image processors and / or a central processing unit 104 , and a peripheral interface 106 . Memory interface 102, one or more processors 104, and / or peripheral interface 106 may be discrete componen...

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 an automatic test method of memory leakage, which is suitably used for being executed in a mobile terminal. The method comprises the following steps of building a first thread; executing a test case in the first thread; building a second thread; starting memory monitoring in the second thread; detecting whether the test case in the first thread is still executed or not; acquiring memory occupancy data of a tested application if the test case in the first thread is determined to be still executed; judging whether memory leakage occurs in the tested application or not according to the memory occupancy data; repeating the above steps of detection, acquisition and judgment per sampling time interval until memory leakage occurs in the tested application if no memory leakage occurring in the tested application is judged; giving out an alarm signal when memory leakage occurring in the tested application is judged; and extracting a memory information file of the tested application so as to locate the position of memory leakage of the tested application according to the memory information file. The invention discloses an automatic test device of memory leakage and the mobile terminal.

Description

technical field [0001] The invention relates to the field of application technology of mobile terminals, in particular to an automatic test method, device and system for memory leaks. Background technique [0002] Currently, more and more applications are installed in mobile terminals such as smart phones. Although its hardware level is constantly improving, users still often feel stuck when operating, that is, the operation is not smooth. An important reason for this situation is application or system defects, resulting in memory leaks. Memory leaks will not only affect the running speed of mobile terminals, but may also cause application crashes. [0003] Therefore, it is very necessary to test memory leaks for mobile terminal applications and systems. The traditional method is to monitor the memory situation on the PC side through self-developed tools (for example, to continuously read memory usage information for a long period of time), and then observers manually obs...

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/36
Inventor 陈晓青
Owner XIAMEN MEITU MOBILE TECH CO LTD