亚行外壳dumpsys meminfo中 - 什么是它的输出的每个单元的意义? [英] adb shell dumpsys meminfo - What is the meaning of each cell of its output?

查看:799
本文介绍了亚行外壳dumpsys meminfo中 - 什么是它的输出的每个单元的意义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看着下面的命令给出的输出

I was looking at the output given below for the command

亚行外壳dumpsys meminfo中com.imangi.templerun

不过,我不能够正确地理解这一点。

However, I am not able to understand this properly.

任何人可以帮助我理解?

Can anybody help me understand this?

推荐答案

由于行和列presented可能不同版本的dumpsys',我会尝试在这里提供一些通用的概述...

Since columns and rows presented may vary for different versions of 'dumpsys', I'll try to provide some generic overview here...

在Android的每个应用程序在运行它自己的Dalvik虚拟机实例不同的进程中运行。

Every application in Android runs in different process that is running instance of its own Dalvik VM.

  • 本机堆行重新presents使用的过程本身的内存。(例如:本机C mallocs)
  • Dalvik的堆是Dalvik虚拟机(例如:在Java的Andr​​oid code变量)分配的内存。
  • 的Dalvik其他是用于JIT和GC的记忆。
  • Native Heap row represents memory used by the process itself (Ex: Native C mallocs).
  • Dalvik Heap is memory allocated by Dalvik VM (Ex: Variables in your Java Android code).
  • Dalvik Other is memory used for JIT and GC.

Android的可共享的内存页面在几个流程(想想$ C $共同框架的C)。清洁内存是一个并没有改变,因为它是分配的,或从存储器加载($ C $应用程序C)。肮脏的内存是用于计算空间。 Android不具备交换机制,使脏内存RAM也将在应用程序退出时释放。

Android may share pages of memory among several processes (Think code of common frameworks). Clean memory is one that hasn't changed since it was allocated or loaded from storage (Code of your application). Dirty memory is space used for computations. Android does not have swap mechanism so Dirty memory is also RAM that will be freed when app exits.

  • 私人脏都不是共享的脏内存(猜你想通了)。
  • 专用清洁都不是共享的清洁存储器(和)。
  • PSS 比例集大小:是一个棘手的测量,所有的私人网页贡献自己的尺寸的100%,并共享内存的贡献大小/(过程NUM共享)。如果总结所有PSS你会得到总内存使用的全部过程通过这种方式。
  • 已换脏不知道。我有一个关于这个问题:<一href="http://stackoverflow.com/questions/30872464/android-dumpsys-meminfo-swapped-dirty-coloumn-meaning">Android dumpsys meminfo中&QUOT;已交换脏QUOT; coloumn意思?
  • Private Dirty is unshared dirty memory (guess you figured that).
  • Private Clean is unshared clean memory (and that).
  • PSS Proportional Set Size: Is a tricky measurement where all private pages contribute 100% of their size and shared memory contribute 'size/(num of processes shared)'. This way if you sum up all PSS for all processes you'll get total memory used.
  • Swapped Dirty No idea. I have question regarding this:Android dumpsys meminfo "Swapped Dirty" coloumn meaning?

延伸阅读: https://developer.android.com/tool​​s/debugging/debugging-memory.html

这篇关于亚行外壳dumpsys meminfo中 - 什么是它的输出的每个单元的意义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆