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 |
---|---|
int |
describeContents() |
static Statm |
get(int pid)
Read /proc/[pid]/statm.
|
long |
getResidentSetSize() |
long |
getSize() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
canExecute, 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, toURL
public 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.Statm
java.io.IOException
- if the file does not exist or we don't have read permissions.public long getSize()
public long getResidentSetSize()
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class ProcFile
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class ProcFile