LLVM API Documentation
The specific class representing the current process. More...
#include <Process.h>
Public Member Functions | |
id_type | get_id () override |
Get the operating system specific identifier for this process. | |
TimeValue | get_user_time () const override |
Get the user time consumed by this process. | |
TimeValue | get_system_time () const override |
Get the system time consumed by this process. | |
TimeValue | get_wall_time () const override |
Get the wall time consumed by this process. | |
Process configuration (sysconf on POSIX) | |
size_t | page_size () const |
Get the virtual memory page size. | |
Friends | |
class | process |
The specific class representing the current process.
The current process can both specialize the implementation of the routines and can expose certain information not available for other OS processes.
id_type llvm::sys::self_process::get_id | ( | ) | [override, virtual] |
Get the operating system specific identifier for this process.
Implements llvm::sys::process.
TimeValue llvm::sys::self_process::get_system_time | ( | ) | const [override, 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.
Implements llvm::sys::process.
TimeValue llvm::sys::self_process::get_user_time | ( | ) | const [override, 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.
Implements llvm::sys::process.
TimeValue self_process::get_wall_time | ( | ) | const [override, 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.
Implements llvm::sys::process.
Definition at line 68 of file Process.cpp.
References getElapsedWallTime().
size_t llvm::sys::self_process::page_size | ( | ) | const [inline] |
Get the virtual memory page size.
Query the operating system for this process's page size.
Definition at line 124 of file Process.h.
Referenced by getOpenFileImpl().