LLVM API Documentation

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

The specific class representing the current process. More...

#include <Process.h>

Inheritance diagram for llvm::sys::self_process:
Inheritance graph
[legend]
Collaboration diagram for llvm::sys::self_process:
Collaboration graph
[legend]

Public Member Functions

virtual id_type get_id ()
 Get the operating system specific identifier for this process. More...
 
virtual TimeValue get_user_time () const
 Get the user time consumed by this process. More...
 
virtual TimeValue get_system_time () const
 Get the system time consumed by this process. More...
 
virtual TimeValue get_wall_time () const
 Get the wall time consumed by this process. More...
 
Process configuration (sysconf on POSIX)
size_t page_size () const
 Get the virtual memory page size. More...
 

Friends

class process
 

Additional Inherited Members

- Public Types inherited from llvm::sys::process
typedef pid_t id_type
 Operating system specific type to identify a process. More...
 
- Static Public Member Functions inherited from llvm::sys::process
static self_processget_self ()
 Get the process object for the current process. More...
 
- Protected Member Functions inherited from llvm::sys::process
virtual ~process ()
 Only specific subclasses of process objects can be destroyed. More...
 

Detailed Description

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.

Definition at line 105 of file Process.h.

Member Function Documentation

virtual id_type llvm::sys::self_process::get_id ( )
virtual

Get the operating system specific identifier for this process.

Implements llvm::sys::process.

virtual TimeValue llvm::sys::self_process::get_system_time ( ) const
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.

virtual TimeValue llvm::sys::self_process::get_user_time ( ) const
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
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 73 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().

Friends And Related Function Documentation

friend class process
friend

Definition at line 106 of file Process.h.


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