public class KernelUidCpuTimeReader extends Object
readDelta(com.android.internal.os.KernelUidCpuTimeReader.Callback)
in order to provide a proper
delta.Modifier and Type | Class and Description |
---|---|
static interface |
KernelUidCpuTimeReader.Callback
Callback interface for processing each line of the proc file.
|
Constructor and Description |
---|
KernelUidCpuTimeReader() |
Modifier and Type | Method and Description |
---|---|
void |
readDelta(KernelUidCpuTimeReader.Callback callback)
Reads the proc file, calling into the callback with a delta of time for each UID.
|
void |
removeUid(int uid)
Removes the UID from the kernel module and from internal accounting data.
|
public void readDelta(KernelUidCpuTimeReader.Callback callback)
callback
- The callback to invoke for each line of the proc file. If null,
the data is consumed and subsequent calls to readDelta will provide
a fresh delta.public void removeUid(int uid)
uid
- The UID to remove.