LLVM API Documentation

Public Member Functions | Friends
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]

List of all members.

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

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

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


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: