LLVM API Documentation
Generic base class which exposes information about an operating system process. More...
#include <Process.h>
Public Types | |
typedef pid_t | id_type |
Operating system specific type to identify a process. | |
Public Member Functions | |
virtual id_type | get_id ()=0 |
Get the operating system specific identifier for this process. | |
virtual TimeValue | get_user_time () const =0 |
Get the user time consumed by this process. | |
virtual TimeValue | get_system_time () const =0 |
Get the system time consumed by this process. | |
virtual TimeValue | get_wall_time () const =0 |
Get the wall time consumed by this process. | |
Static Public Member Functions | |
Static factory routines for processes. | |
static self_process * | get_self () |
Get the process object for the current process. | |
Protected Member Functions | |
virtual | ~process () |
Only specific subclasses of process objects can be destroyed. |
Generic base class which exposes information about an operating system process.
This base class is the core interface behind any OS process. It exposes methods to query for generic information about a particular process.
Subclasses implement this interface based on the mechanisms available, and can optionally expose more interfaces unique to certain process kinds.
typedef pid_t llvm::sys::process::id_type |
process::~process | ( | ) | [protected, virtual] |
Only specific subclasses of process objects can be destroyed.
Definition at line 30 of file Process.cpp.
virtual id_type llvm::sys::process::get_id | ( | ) | [pure virtual] |
Get the operating system specific identifier for this process.
Implemented in llvm::sys::self_process.
self_process * process::get_self | ( | ) | [static] |
Get the process object for the current process.
Definition at line 32 of file Process.cpp.
Referenced by getOpenFileImpl().
virtual TimeValue llvm::sys::process::get_system_time | ( | ) | const [pure virtual] |
Get the system time consumed by this process.
Note that this is often an approximation and may be zero on platforms where we don't have good support for the functionality.
Implemented in llvm::sys::self_process.
virtual TimeValue llvm::sys::process::get_user_time | ( | ) | const [pure virtual] |
Get the user time consumed by this process.
Note that this is often an approximation and may be zero on platforms where we don't have good support for the functionality.
Implemented in llvm::sys::self_process.
virtual TimeValue llvm::sys::process::get_wall_time | ( | ) | const [pure virtual] |
Get the wall time consumed by this process.
Note that this is often an approximation and may be zero on platforms where we don't have good support for the functionality.
Implemented in llvm::sys::self_process.