public final class Cgroup extends ProcFile
/proc/[pid]/cgroup (since Linux 2.6.24)
This file describes control groups to which the process/task belongs. For each cgroup hierarchy there is one entry containing colon-separated fields of the form:
5:cpuacct,cpu,cpuset:/daemons
The colon-separated fields are, from left to right:
This file is present only if the CONFIG_CGROUPS kernel configuration option is enabled.
ControlGroup
,
Serialized FormModifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Cgroup> |
CREATOR |
java.util.ArrayList<ControlGroup> |
groups
the process' control groups
|
Modifier and Type | Method and Description |
---|---|
static Cgroup |
get(int pid)
Read /proc/[pid]/cgroup.
|
ControlGroup |
getGroup(java.lang.String subsystem) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
describeContents, length, readFile
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.util.ArrayList<ControlGroup> groups
public static final android.os.Parcelable.Creator<Cgroup> CREATOR
public static Cgroup get(int pid) throws java.io.IOException
pid
- the processes id.Cgroup
java.io.IOException
- if the file does not exist or we don't have read permissions.public ControlGroup getGroup(java.lang.String subsystem)
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class ProcFile