Struct Ase::TaskStatus
ClassList > Ase > TaskStatus
Acquire information about a task (process or thread) at runtime.
#include <platform.hh>
Public Types
Type | Name |
---|---|
enum | State |
Public Attributes
Type | Name |
---|---|
uint64 | ac_cstime |
uint64 | ac_cutime |
uint64 | ac_stamp Accounting stamp. |
uint64 | ac_stime |
uint64 | ac_utime |
uint64 | cstime System time of dead children. |
uint64 | cutime Userspace time of dead children. |
String | name Thread name (set by user). |
int | priority Priority or nice value. |
int | process_id Process ID. |
int | processor Rrunning processor number. |
State | state Thread state. |
uint64 | stime System time. |
int | task_id Process ID or thread ID. |
uint64 | utime Userspace time. |
Public Functions
Type | Name |
---|---|
TaskStatus (int pid, int tid=-1) Construct from process ID and optionally thread ID. |
|
String | string () Retrieve string representation of the status information. |
bool | update () Update status information, might return false if called too frequently. |
Public Types Documentation
enum State
enum Ase::TaskStatus::State {
UNKNOWN = '?',
RUNNING = 'R',
SLEEPING = 'S',
DISKWAIT = 'D',
STOPPED = 'T',
PAGING = 'W',
ZOMBIE = 'Z',
DEBUG = 'X'
};
Public Attributes Documentation
variable ac_cstime
uint64 Ase::TaskStatus::ac_cstime;
variable ac_cutime
uint64 Ase::TaskStatus::ac_cutime;
variable ac_stamp
Accounting stamp.
uint64 Ase::TaskStatus::ac_stamp;
variable ac_stime
uint64 Ase::TaskStatus::ac_stime;
variable ac_utime
uint64 Ase::TaskStatus::ac_utime;
variable cstime
System time of dead children.
uint64 Ase::TaskStatus::cstime;
variable cutime
Userspace time of dead children.
uint64 Ase::TaskStatus::cutime;
variable name
Thread name (set by user).
String Ase::TaskStatus::name;
variable priority
Priority or nice value.
int Ase::TaskStatus::priority;
variable process_id
Process ID.
int Ase::TaskStatus::process_id;
variable processor
Rrunning processor number.
int Ase::TaskStatus::processor;
variable state
Thread state.
State Ase::TaskStatus::state;
variable stime
System time.
uint64 Ase::TaskStatus::stime;
variable task_id
Process ID or thread ID.
int Ase::TaskStatus::task_id;
variable utime
Userspace time.
uint64 Ase::TaskStatus::utime;
Public Functions Documentation
function TaskStatus
Construct from process ID and optionally thread ID.
explicit Ase::TaskStatus::TaskStatus (
int pid,
int tid=-1
)
function string
Retrieve string representation of the status information.
String Ase::TaskStatus::string ()
function update
Update status information, might return false if called too frequently.
bool Ase::TaskStatus::update ()
The documentation for this class was generated from the following file /__w/anklang/anklang/ase/platform.hh