LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | List of all members
llvm::sys::process Class Referenceabstract

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

#include <Process.h>

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

Public Types

typedef pid_t id_type
 Operating system specific type to identify a process. More...
 

Public Member Functions

virtual id_type get_id ()=0
 Get the operating system specific identifier for this process. More...
 
virtual TimeValue get_user_time () const =0
 Get the user time consumed by this process. More...
 
virtual TimeValue get_system_time () const =0
 Get the system time consumed by this process. More...
 
virtual TimeValue get_wall_time () const =0
 Get the wall time consumed by this process. More...
 

Static Public Member Functions

Static factory routines for processes.
static self_processget_self ()
 Get the process object for the current process. More...
 

Protected Member Functions

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

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 ( )
protectedvirtual

Only specific subclasses of process objects can be destroyed.

Definition at line 27 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.

self_process * process::get_self ( )
static

Get the process object for the current process.

Definition at line 29 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: