to top
Android APIs
public static class

Debug.MemoryInfo

extends Object
implements Parcelable
java.lang.Object
   ↳ android.os.Debug.MemoryInfo

Class Overview

This class is used to retrieved various statistics about the memory mappings for this process. The returns info broken down by dalvik, native, and other. All results are in kB.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<Debug.MemoryInfo> CREATOR
public int dalvikPrivateDirty The private dirty pages used by dalvik.
public int dalvikPss The proportional set size for dalvik.
public int dalvikSharedDirty The shared dirty pages used by dalvik.
public int nativePrivateDirty The private dirty pages used by the native heap.
public int nativePss The proportional set size for the native heap.
public int nativeSharedDirty The shared dirty pages used by the native heap.
public int otherPrivateDirty The private dirty pages used by everything else.
public int otherPss The proportional set size for everything else.
public int otherSharedDirty The shared dirty pages used by everything else.
Public Constructors
Debug.MemoryInfo()
Public Methods
int describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
static String getOtherLabel(int which)
int getOtherPrivateDirty(int which)
int getOtherPss(int which)
int getOtherSharedDirty(int which)
int getTotalPrivateDirty()
Return total private dirty memory usage in kB.
int getTotalPss()
Return total PSS memory usage in kB.
int getTotalSharedDirty()
Return total shared dirty memory usage in kB.
void readFromParcel(Parcel source)
void writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<Debug.MemoryInfo> CREATOR

Added in API level 5

public int dalvikPrivateDirty

Added in API level 1

The private dirty pages used by dalvik.

public int dalvikPss

Added in API level 1

The proportional set size for dalvik.

public int dalvikSharedDirty

Added in API level 1

The shared dirty pages used by dalvik.

public int nativePrivateDirty

Added in API level 1

The private dirty pages used by the native heap.

public int nativePss

Added in API level 1

The proportional set size for the native heap.

public int nativeSharedDirty

Added in API level 1

The shared dirty pages used by the native heap.

public int otherPrivateDirty

Added in API level 1

The private dirty pages used by everything else.

public int otherPss

Added in API level 1

The proportional set size for everything else.

public int otherSharedDirty

Added in API level 1

The shared dirty pages used by everything else.

Public Constructors

public Debug.MemoryInfo ()

Added in API level 1

Public Methods

public int describeContents ()

Added in API level 5

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Returns
  • a bitmask indicating the set of special object types marshalled by the Parcelable.

public static String getOtherLabel (int which)

Added in API level 14

public int getOtherPrivateDirty (int which)

Added in API level 14

public int getOtherPss (int which)

Added in API level 14

public int getOtherSharedDirty (int which)

Added in API level 14

public int getTotalPrivateDirty ()

Added in API level 5

Return total private dirty memory usage in kB.

public int getTotalPss ()

Added in API level 5

Return total PSS memory usage in kB.

public int getTotalSharedDirty ()

Added in API level 5

Return total shared dirty memory usage in kB.

public void readFromParcel (Parcel source)

Added in API level 5

public void writeToParcel (Parcel dest, int flags)

Added in API level 5

Flatten this object in to a Parcel.

Parameters
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.