|
Anklang-0.3.0.dev551+gad1415e2 anklang-0.3.0.dev551+gad1415e2
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
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.
Definition at line 136 of file platform.hh.
| enum Ase::TaskStatus::State |
Definition at line 137 of file platform.hh.
Construct from process ID and optionally thread ID.
Definition at line 959 of file platform.cc.
References utime().
| String Ase::TaskStatus::string | ( | ) |
Retrieve string representation of the status information.
Definition at line 1052 of file platform.cc.
References cstime, cutime, priority, process_id, processor, state, stime, Ase::string_format(), task_id, and utime.
| bool Ase::TaskStatus::update | ( | ) |
Update status information, might return false if called too frequently.
Definition at line 1034 of file platform.cc.
References ac_stamp, cstime, cutime, MAX, stime, Ase::timestamp_realtime(), and utime.
Referenced by Ase::TaskRegistry::add().
| uint64 Ase::TaskStatus::ac_cstime |
Definition at line 149 of file platform.hh.
| uint64 Ase::TaskStatus::ac_cutime |
Definition at line 149 of file platform.hh.
| uint64 Ase::TaskStatus::ac_stamp |
| uint64 Ase::TaskStatus::ac_stime |
Definition at line 149 of file platform.hh.
| uint64 Ase::TaskStatus::ac_utime |
Definition at line 149 of file platform.hh.
| uint64 Ase::TaskStatus::cstime |
System time of dead children.
Definition at line 147 of file platform.hh.
| uint64 Ase::TaskStatus::cutime |
Userspace time of dead children.
Definition at line 146 of file platform.hh.
| String Ase::TaskStatus::name |
Thread name (set by user).
Definition at line 140 of file platform.hh.
Referenced by Ase::TaskRegistry::add().
| int Ase::TaskStatus::priority |
| int Ase::TaskStatus::process_id |
| int Ase::TaskStatus::processor |
| State Ase::TaskStatus::state |
| uint64 Ase::TaskStatus::stime |
| int Ase::TaskStatus::task_id |
| uint64 Ase::TaskStatus::utime |