LLVM API Documentation
00001 //===- llvm/System/Process.h ------------------------------------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file was developed by Reid Spencer and is distributed under the 00006 // University of Illinois Open Source License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file declares the llvm::sys::Process class. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef LLVM_SYSTEM_PROCESS_H 00015 #define LLVM_SYSTEM_PROCESS_H 00016 00017 namespace llvm { 00018 namespace sys { 00019 00020 /// This class provides an abstraction for getting information about the 00021 /// currently executing process. 00022 /// @since 1.4 00023 /// @brief An abstraction for operating system processes. 00024 class Process { 00025 /// @name Accessors 00026 /// @{ 00027 public: 00028 /// This static function will return the operating system's virtual memory 00029 /// page size. 00030 /// @returns The number of bytes in a virtual memory page. 00031 /// @throws nothing 00032 /// @brief Get the virtual memory page size 00033 static unsigned GetPageSize(); 00034 00035 /// @} 00036 }; 00037 } 00038 } 00039 00040 // vim: sw=2 00041 00042 #endif