public final class Statm extends ProcFile
Provides information about memory usage, measured in pages.
The columns are:
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Statm> |
CREATOR |
java.lang.String[] |
fields |
| Modifier and Type | Method and Description |
|---|---|
static Statm |
get(int pid)
Read /proc/[pid]/statm.
|
long |
getResidentSetSize() |
long |
getSize() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
describeContents, length, readFilecanExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURLpublic final java.lang.String[] fields
public static final android.os.Parcelable.Creator<Statm> CREATOR
public static Statm get(int pid) throws java.io.IOException
pid - the process id.Statmjava.io.IOException - if the file does not exist or we don't have read permissions.public long getSize()
public long getResidentSetSize()
public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class ProcFile