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

Since: API Level 5

public int dalvikPrivateDirty

Since: API Level 1

The private dirty pages used by dalvik.

public int dalvikPss

Since: API Level 1

The proportional set size for dalvik.

public int dalvikSharedDirty

Since: API Level 1

The shared dirty pages used by dalvik.

public int nativePrivateDirty

Since: API Level 1

The private dirty pages used by the native heap.

public int nativePss

Since: API Level 1

The proportional set size for the native heap.

public int nativeSharedDirty

Since: API Level 1

The shared dirty pages used by the native heap.

public int otherPrivateDirty

Since: API Level 1

The private dirty pages used by everything else.

public int otherPss

Since: API Level 1

The proportional set size for everything else.

public int otherSharedDirty

Since: API Level 1

The shared dirty pages used by everything else.

Public Constructors

public Debug.MemoryInfo ()

Since: API Level 1

Public Methods

public int describeContents ()

Since: 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)

Since: API Level 14

public int getOtherPrivateDirty (int which)

Since: API Level 14

public int getOtherPss (int which)

Since: API Level 14

public int getOtherSharedDirty (int which)

Since: API Level 14

public int getTotalPrivateDirty ()

Since: API Level 5

Return total private dirty memory usage in kB.

public int getTotalPss ()

Since: API Level 5

Return total PSS memory usage in kB.

public int getTotalSharedDirty ()

Since: API Level 5

Return total shared dirty memory usage in kB.

public void readFromParcel (Parcel source)

Since: API Level 5

public void writeToParcel (Parcel dest, int flags)

Since: 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.