Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Memory usage analysis method, device and system of mobile terminal

A mobile terminal, memory occupation technology, applied in the field of communication, can solve the problem of not providing system process memory analysis, unable to locate memory occupation well, etc., to achieve the effect of improving performance

Inactive Publication Date: 2014-11-05
TENCENT TECH CHENGDU
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] During the research and practice of the prior art, the inventors of the present invention found that although DDMS only provides the memory snapshot analysis function of the Dalvik virtual machine in the application process, it does not provide the memory analysis of the system process level, therefore, it cannot Good location for memory usage issues

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 usage analysis method, device and system of mobile terminal
  • Memory usage analysis method, device and system of mobile terminal
  • Memory usage analysis method, device and system of mobile terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] This embodiment will be described from the perspective of the memory usage analysis device of the mobile terminal. The memory usage analysis device of the mobile terminal can be integrated in the mobile terminal, and the mobile terminal can include a smart phone, a tablet computer, an e-book reader, a dynamic Image experts compress standard audio layer 3 (Moving Picture Experts Group Audio Layer III, MP3) player or moving picture experts compress standard audio layer 4 (Moving Picture Experts Group Audio Layer IV, MP4) player, etc.

[0029] A method for analyzing memory usage of a mobile terminal, comprising: obtaining a first memory mapping snapshot of an application process in the mobile terminal, wherein the first memory mapping snapshot includes mapping content and actual used physical memory (PSS, Proportional Set Size) value; obtain the corresponding PSS value from the first memory map snapshot respectively according to the mapping content, accumulate the PSS value...

Embodiment 2

[0058] On the basis of the memory occupation analysis method of the mobile terminal provided in Embodiment 1, multiple memory mapping snapshots can also be obtained, and these memory mapping snapshots can be compared, for example, the previous memory mapping snapshot can be subtracted from the latter memory mapping snapshot The PSS value corresponding to the same mapping content in the snapshot is used to calculate the difference, so as to analyze the change of memory usage. that is, figure 2 As shown, in addition to executing steps 101-103, the method for analyzing memory usage of the mobile terminal may further include the following steps:

[0059] 201. Acquire another memory-mapped snapshot of an application process in a mobile terminal. For convenience of description, in this embodiment, the acquired memory-mapped snapshot is called a second memory-mapped snapshot.

[0060] Wherein, the method of obtaining the second memory-mapped snapshot is the same as obtaining the fi...

Embodiment 3

[0080] According to the methods described in Embodiments 1 and 2, examples will be given below for further detailed description.

[0081] In this embodiment, description will be made by taking the mobile terminal's memory usage analysis apparatus integrated in the mobile terminal as an example.

[0082] Such as image 3 As shown, a method for analyzing memory usage of a mobile terminal may be specifically as follows:

[0083] 301. The mobile terminal acquires a first memory-mapped snapshot of an application process in the mobile terminal, where the first memory-mapped snapshot may include information such as mapping content and a PSS value.

[0084] Wherein, there are many ways to obtain the first memory-mapped snapshot. For example, it can be obtained through the system's own command to view the memory image information of the process, such as the Linux system's own pmap command, and so on.

[0085] 302. The mobile terminal respectively acquires corresponding PSS values ​​f...

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 discloses a memory usage analysis method, device and system of a mobile terminal. The memory usage analysis method disclosed by the embodiment of the invention comprises the following steps: obtaining a first memory mapping snapshot of an application process in the mobile terminal, wherein the first memory mapping snapshot comprises mapping contents and PSS(Proportional Set Size) values; according to the mapping contents, respectively obtaining the corresponding PSS values from the first memory mapping snapshot, accumulating the PSS values corresponding to the same mapping content to obtain a first accumulation result; and then, according to the mapping content and the first accumulation result, drawing a memory scale drawing or a memory scale statistical table. Since the memory scale drawing or the memory scale statistical table is vivid, simple and easy in understanding, a subsequent user can conveniently analyze and position memory problems according to the memory scale drawing or the memory scale statistical table so as to be favorable for improving the performance of a mobile terminal system.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a method, device and system for analyzing memory occupation of a mobile terminal. Background technique [0002] With the development of communication technology, the application of mobile terminals is becoming more and more extensive. How to further improve the performance of the mobile terminal has also become a problem that people pay more and more attention to. [0003] The performance of mobile terminals depends on many factors, and memory is one of them. Therefore, how to optimize memory also has a certain impact on improving the performance of mobile terminals, and the analysis of memory occupation is the basis of memory optimization. Therefore, the prior art proposes various analysis technologies about memory usage, and Dalvik Debug Monitor Service (DDMS, Dalvik Debug Monitor Service) is one of them. The so-called DDMS is a Dalvik virtual machine (a Java v...

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/34G06F12/10G06F12/02
Inventor 宁京
Owner TENCENT TECH CHENGDU
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products