java.lang.Object | |
↳ | android.os.Debug.MemoryInfo |
This class is used to retrieved various statistics about the memory mappings for this process. The returned info is broken down by dalvik, native, and other. All results are in kB.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | |||||||||||
dalvikPrivateDirty | The private dirty pages used by dalvik heap. | ||||||||||
dalvikPss | The proportional set size for dalvik heap. | ||||||||||
dalvikSharedDirty | The shared dirty pages used by dalvik heap. | ||||||||||
nativePrivateDirty | The private dirty pages used by the native heap. | ||||||||||
nativePss | The proportional set size for the native heap. | ||||||||||
nativeSharedDirty | The shared dirty pages used by the native heap. | ||||||||||
otherPrivateDirty | The private dirty pages used by everything else. | ||||||||||
otherPss | The proportional set size for everything else. | ||||||||||
otherSharedDirty | The shared dirty pages used by everything else. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Returns the value of a particular memory statistic or
null if no
such memory statistic exists.
| |||||||||||
Returns a map of the names/values of the memory statistics
that
getMemoryStat(String) supports.
| |||||||||||
Return total shared clean memory usage in kB.
| |||||||||||
Return total private dirty memory usage in kB.
| |||||||||||
Return total PSS memory usage in kB.
| |||||||||||
Return total shared clean memory usage in kB.
| |||||||||||
Return total shared dirty memory usage in kB.
| |||||||||||
Return total PSS memory usage in kB.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
The proportional set size for dalvik heap. (Doesn't include other Dalvik overhead.)
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Returns the value of a particular memory statistic or null
if no
such memory statistic exists.
The following table lists the memory statistics that are supported. Note that memory statistics may be added or removed in a future API level.
Memory statistic name | Meaning | Example | Supported (API Levels) |
---|---|---|---|
summary.java-heap | The private Java Heap usage in kB. This corresponds to the Java Heap field in the App Summary section output by dumpsys meminfo. | 1442 |
23 |
summary.native-heap | The private Native Heap usage in kB. This corresponds to the Native Heap field in the App Summary section output by dumpsys meminfo. | 1442 |
23 |
summary.code | The memory usage for static code and resources in kB. This corresponds to the Code field in the App Summary section output by dumpsys meminfo. | 1442 |
23 |
summary.stack | The stack usage in kB. This corresponds to the Stack field in the App Summary section output by dumpsys meminfo. | 1442 |
23 |
summary.graphics | The graphics usage in kB. This corresponds to the Graphics field in the App Summary section output by dumpsys meminfo. | 1442 |
23 |
summary.private-other | Other private memory usage in kB. This corresponds to the Private Other field output in the App Summary section by dumpsys meminfo. | 1442 |
23 |
summary.system | Shared and system memory usage in kB. This corresponds to the System field output in the App Summary section by dumpsys meminfo. | 1442 |
23 |
summary.total-pss | Total PPS memory usage in kB. | 1442 |
23 |
summary.total-swap | Total swap usage in kB. | 1442 |
23 |
Returns a map of the names/values of the memory statistics
that getMemoryStat(String)
supports.
Return total shared clean memory usage in kB.
Return total private dirty memory usage in kB.
Return total shared clean memory usage in kB.
Return total shared dirty memory usage in kB.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|