#include "platform.hh"
Public Types | |
enum | State { UNKNOWN , RUNNING , SLEEPING , DISKWAIT , STOPPED , PAGING , ZOMBIE , DEBUG } |
Public Member Functions | |
String | string () |
TaskStatus (int pid, int tid=-1) | |
bool | update () |
Public Attributes | |
uint64 | ac_cstime |
uint64 | ac_cutime |
uint64 | ac_stamp |
uint64 | ac_stime |
uint64 | ac_utime |
uint64 | cstime |
uint64 | cutime |
String | name |
int | priority |
int | process_id |
int | processor |
State | state |
uint64 | stime |
int | task_id |
uint64 | utime |
Acquire information about a task (process or thread) at runtime.
enum State |
|
explicit |
Construct from process ID and optionally thread ID.
bool update | ( | ) |
Update status information, might return false if called too frequently.
String string | ( | ) |
Retrieve string representation of the status information.
int process_id |
Process ID.
int task_id |
Process ID or thread ID.
String name |
Thread name (set by user).
State state |
Thread state.
int processor |
Rrunning processor number.
int priority |
Priority or nice value.
uint64 utime |
Userspace time.
uint64 stime |
System time.
uint64 cutime |
Userspace time of dead children.
uint64 cstime |
System time of dead children.
uint64 ac_stamp |
Accounting stamp.
uint64 ac_utime |
uint64 ac_stime |
uint64 ac_cutime |
uint64 ac_cstime |