LLVM API Documentation

Public Types | Public Member Functions | Protected Member Functions
llvm::sys::process Class Reference

Generic base class which exposes information about an operating system process. More...

#include <Process.h>

Inheritance diagram for llvm::sys::process:
Inheritance graph
[legend]

List of all members.

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_processget_self ()
 Get the process object for the current process.

Protected Member Functions

virtual ~process ()
 Only specific subclasses of process objects can be destroyed.

Detailed Description

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.

Definition at line 51 of file Process.h.


Member Typedef Documentation

Operating system specific type to identify a process.

Note that the windows one is defined to 'unsigned long' as this is the documented type for DWORD on windows, and we don't want to pull in the Windows headers here.

Definition at line 63 of file Process.h.


Constructor & Destructor Documentation

process::~process ( ) [protected, virtual]

Only specific subclasses of process objects can be destroyed.

Definition at line 30 of file Process.cpp.


Member Function Documentation

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.

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.


The documentation for this class was generated from the following files: