Rapicorn - Experimental UI Toolkit - Source Code
13.07.0
|
Acquire information about a task (process or thread) at runtime. More...
#include <platform.hh>
Public Types | |
enum | State { UNKNOWN, RUNNING, SLEEPING, DISKWAIT, STOPPED, PAGING, ZOMBIE, DEBUG } |
Public Member Functions | |
TaskStatus (int pid, int tid=-1) | |
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. | |
Public Attributes | |
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 |
Acquire information about a task (process or thread) at runtime.