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

Memory occupation statistical method and terminal equipment

A terminal equipment, memory technology, applied in the computer field, can solve the problem of long time

Pending Publication Date: 2020-11-20
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Exemplarily, by calculating the memory usage of a process, the time scale is tens of milliseconds. If the memory of all applications is counted, it will take a long time

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 occupation statistical method and terminal equipment
  • Memory occupation statistical method and terminal equipment
  • Memory occupation statistical method and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Embodiments of the present invention provide a method for counting occupied memory, a terminal device, and a computer-readable storage medium for reducing time-consuming acquisition of occupied memory corresponding to an application program to be read.

[0029] In order to enable those skilled in the art to better understand the solution of the present invention, the following will describe the technical solution in the embodiment of the present invention in conjunction with the accompanying drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the present invention Examples, but not all examples. All embodiments based on the present invention shall belong to the protection scope of the present invention.

[0030] In the existing technical solution, the occupation and time consumption of the central processing unit (central processing unit, CPU) are illustrated by taking the memory file dumpsys meminfo as an example, ...

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 method for counting occupied memory, terminal equipment and a computer readable storage medium, which are used for reducing the time consumed for obtainingthe occupied memory corresponding to a to-be-read application program. The embodiment of the invention is applied to terminal equipment of an Android system, the Android system comprises an Android layer and a kernel layer. The method comprises the steps: that a reading request is collected through the Android layer, and the reading request comprises a first identifier corresponding to a to-be-read application program; controlling the Android layer to call an access interface, and transmitting the first identifier to the kernel layer through the access interface; and counting the occupied memory corresponding to the first identifier through the kernel layer, and returning the occupied memory corresponding to the first identifier to the Android layer.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method for counting occupied memory, a terminal device, and a computer-readable storage medium. Background technique [0002] The Android (Android) system terminal device currently counts the memory occupied by each application (Application, App) by traversing the memory files of all processes of each application, such as smaps / statm / status. Take dumpsys meminfo as an example: an application corresponds to multiple processes, and the Android system needs to traverse and read the smaps files of each process; among them, in a process, each piece of memory requested corresponds to an area value of smaps, Android needs to carry out arithmetic operations corresponding to all the area values ​​of a process to obtain the memory occupied by a process; then add up the smaps calculation results of all processes corresponding to the application to obtain the memory occupation of...

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): G06F9/50G06F8/41
CPCG06F9/5016G06F8/4434
Inventor 李培锋
Owner GUANGDONG OPPO MOBILE TELECOMM CORP LTD