The Gaudi Framework
master (37c0b60a)
|
Note: OS specific details for environment resolution. More...
Namespaces | |
Linux | |
Namespace holding Linux specific functions. | |
MacOS | |
Namespace holding MacOS specific functions. | |
Win32 | |
Namespace holding Windows specific functions. | |
Classes | |
struct | IO_COUNTERS |
Process I/O Counters NtQueryInformationProcess using ProcessIoCounters. More... | |
struct | KERNEL_USER_TIMES |
Process/Thread System and User Time NtQueryInformationProcess using ProcessTimes NtQueryInformationThread using ThreadTimes. More... | |
class | PathResolver |
struct | POOLED_USAGE_AND_LIMITS |
Process Pooled Quota Usage and Limits NtQueryInformationProcess using ProcessPooledUsageAndLimits. More... | |
struct | PROCESS_BASIC_INFORMATION |
class | ProcessDescriptor |
class | ProcessTime |
Simple class to hold the time information of a process. More... | |
struct | QUOTA_LIMITS |
Process Quotas NtQueryInformationProcess using ProcessQuotaLimits NtQueryInformationProcess using ProcessPooledQuotaLimits NtSetInformationProcess using ProcessQuotaLimits. More... | |
struct | VM_COUNTERS |
Process Virtual Memory Counters NtQueryInformationProcess using ProcessVmCounters. More... | |
Typedefs | |
typedef void * | ImageHandle |
Definition of an image handle. More... | |
typedef void * | ProcessHandle |
Definition of the process handle. More... | |
typedef unsigned long(* | EntryPoint) (const unsigned long iid, void **ppvObject) |
Definition of the "generic" DLL entry point function. More... | |
typedef void *(* | Creator) () |
Definition of the "generic" DLL entry point function. More... | |
typedef void * | ThreadHandle |
A Thread handle. More... | |
typedef struct _PEB * | PPEB |
Basic Process Information NtQueryInformationProcess using ProcessBasicInfo. More... | |
Functions | |
GAUDI_API long | breakExecution () |
Break the execution of the application and invoke the debugger. More... | |
GAUDI_API long | breakExecution (long pid) |
Break the execution of the application and invoke the debugger in a remote process. More... | |
GAUDI_API std::string | homeDirectory () |
GAUDI_API std::string | tempDirectory () |
GAUDI_API StatusCode | resolveEnv (const std::string &var, std::string &res, int recusions=124) |
GAUDI_API long | adjustMemory (MemoryUnit typ, long value) |
Convert time from kByte to requested representation (Experts only) More... | |
GAUDI_API long | procID () |
Basic Process Information: Process ID. More... | |
GAUDI_API long | parentID (InfoType fetch=ProcessBasics, long pid=-1) |
Basic Process Information: Parent's process ID. More... | |
GAUDI_API long | affinityMask (InfoType fetch=ProcessBasics, long pid=-1) |
Basic Process Information: Affinity mask. More... | |
GAUDI_API long | exitStatus (InfoType fetch=ProcessBasics, long pid=-1) |
Basic Process Information: Exit status (does not really make sense for the running process, but for others!) More... | |
GAUDI_API long | basePriority (InfoType fetch=ProcessBasics, long pid=-1) |
Basic Process Information: Base priority. More... | |
GAUDI_API long | priorityBoost (InfoType fetch=PriorityBoost, long pid=-1) |
Basic Process Information: priority boost. More... | |
GAUDI_API long | numPageFault (InfoType fetch=Memory, long pid=-1) |
Basic Process Information: Number of page faults. More... | |
GAUDI_API long | pagefileUsage (MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1) |
Basic Process Information: Current page file usage. More... | |
GAUDI_API long | pagefileUsagePeak (MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1) |
Basic Process Information: Peak usage of page file. More... | |
GAUDI_API long | pagefileUsageLimit (MemoryUnit unit=kByte, InfoType fetch=Quota, long pid=-1) |
Basic Process Information: Peak usage of page file. More... | |
GAUDI_API long | nonPagedMemory (MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1) |
Basic Process Information: Current usage of non paged memory. More... | |
GAUDI_API long | nonPagedMemoryPeak (MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1) |
Basic Process Information: Peak usage of non paged memory. More... | |
GAUDI_API long | nonPagedMemoryLimit (MemoryUnit unit=kByte, InfoType fetch=Quota, long pid=-1) |
System Process Limits: Maximum amount of non-paged memory this process is allowed to use. More... | |
GAUDI_API long | pagedMemory (MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1) |
Basic Process Information: Amount of paged memory currently occupied by the process 'pid'. More... | |
GAUDI_API long | pagedMemoryPeak (MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1) |
Basic Process Information: Maximum of paged memory occupied by the process 'pid'. More... | |
GAUDI_API long | pagedMemoryLimit (MemoryUnit unit=kByte, InfoType fetch=Quota, long pid=-1) |
Basic Process Information: Amount of paged memory that can be occupied by the process 'pid'. More... | |
GAUDI_API long | minMemoryLimit (MemoryUnit unit=kByte, InfoType fetch=Quota, long pid=-1) |
System Process Limits: Minimum amount of virtual memory this process may use. More... | |
GAUDI_API long | maxMemoryLimit (MemoryUnit unit=kByte, InfoType fetch=Quota, long pid=-1) |
System Process Limits: Maximum amount of virtual memory this process is allowed to use. More... | |
GAUDI_API long | mappedMemory (MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1) |
Basic Process Information: priority boost. More... | |
GAUDI_API long | mappedMemoryPeak (MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1) |
Basic Process Information: priority boost. More... | |
GAUDI_API long | virtualMemory (MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1) |
Basic Process Information: priority boost. More... | |
GAUDI_API long | virtualMemoryPeak (MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1) |
Basic Process Information: priority boost. More... | |
GAUDI_API long | virtualMemoryLimit (MemoryUnit unit=kByte, InfoType fetch=Quota, long pid=-1) |
System Process Limits: Maximum amount of the page file this process is allowed to use. More... | |
GAUDI_API const std::string & | moduleName () |
Get the name of the (executable/DLL) file without file-type. More... | |
GAUDI_API const std::string & | moduleNameFull () |
Get the full name of the (executable/DLL) file. More... | |
GAUDI_API ModuleType | moduleType () |
Get type of the module. More... | |
GAUDI_API ProcessHandle | processHandle () |
Handle to running process. More... | |
GAUDI_API ImageHandle | moduleHandle () |
Handle to currently executed module. More... | |
GAUDI_API ImageHandle | exeHandle () |
Handle to the executable file running. More... | |
GAUDI_API const std::string & | exeName () |
Name of the executable file running. More... | |
GAUDI_API const std::vector< std::string > | linkedModules () |
Vector of names of linked modules. More... | |
GAUDI_API void | setModuleHandle (ImageHandle handle) |
Attach module handle. More... | |
GAUDI_API std::string | PathResolverFindXMLFile (const std::string &logical_file_name) |
GAUDI_API std::string | PathResolverFindDataFile (const std::string &logical_file_name) |
GAUDI_API unsigned long | loadDynamicLib (const std::string &name, ImageHandle *handle) |
Load dynamic link library. More... | |
GAUDI_API unsigned long | unloadDynamicLib (ImageHandle handle) |
unload dynamic link library More... | |
GAUDI_API unsigned long | getProcedureByName (ImageHandle handle, const std::string &name, EntryPoint *pFunction) |
Get a specific function defined in the DLL. More... | |
GAUDI_API unsigned long | getProcedureByName (ImageHandle handle, const std::string &name, Creator *pFunction) |
Get a specific function defined in the DLL. More... | |
GAUDI_API unsigned long | getLastError () |
Get last system known error. More... | |
GAUDI_API const std::string | getLastErrorString () |
Get last system error as string. More... | |
GAUDI_API const std::string | getErrorString (unsigned long error) |
Retrieve error code as string for a given error. More... | |
GAUDI_API const std::string | typeinfoName (const std::type_info &) |
Get platform independent information about the class type. More... | |
GAUDI_API const std::string | typeinfoName (const char *) |
GAUDI_API const std::string & | hostName () |
Host name. More... | |
GAUDI_API const std::string & | osName () |
OS name. More... | |
GAUDI_API const std::string & | osVersion () |
OS version. More... | |
GAUDI_API const std::string & | machineType () |
Machine type. More... | |
GAUDI_API int | instructionsetLevel () |
Instruction Set "Level". More... | |
GAUDI_API const std::string & | accountName () |
User login name. More... | |
GAUDI_API long | numCmdLineArgs () |
Number of arguments passed to the commandline. More... | |
GAUDI_API long | argc () |
Number of arguments passed to the commandline (==numCmdLineArgs()); just to match argv call... More... | |
GAUDI_API const std::vector< std::string > | cmdLineArgs () |
Command line arguments including executable name as arg[0] as vector of strings. More... | |
GAUDI_API char ** | argv () |
char** command line arguments including executable name as arg[0]; You may not modify them! More... | |
GAUDI_API std::string | getEnv (const char *var) |
get a particular environment variable (returning "UNKNOWN" if not set) More... | |
GAUDI_API bool | getEnv (const char *var, std::string &value) |
get a particular environment variable, storing the value in the passed string if the variable is set. More... | |
bool | getEnv (const std::string &var, std::string &value) |
GAUDI_API std::vector< std::string > | getEnv () |
get all environment variables More... | |
GAUDI_API int | setEnv (const std::string &name, const std::string &value, int overwrite=1) |
Set an environment variables. More... | |
GAUDI_API bool | isEnvSet (const char *var) |
Check if an environment variable is set or not. More... | |
ThreadHandle | threadSelf () |
thread handle "accessor" More... | |
GAUDI_API int | backTrace (void **addresses, const int depth) |
GAUDI_API bool | backTrace (std::string &btrace, const int depth, const int offset=0) |
GAUDI_API bool | getStackLevel (void *addresses, void *&addr, std::string &fnc, std::string &lib) |
GAUDI_API long long | adjustTime (TimeType typ, long long timevalue) |
Convert time from OS native time to requested representation (Experts only) More... | |
template<TimeType T> | |
long long | adjustTime (long long timevalue) |
Convert the time from OS native time to requested representation (Experts only) More... | |
GAUDI_API long long | ellapsedTime (TimeType typ=milliSec, InfoType fetch=Times, long pid=-1) |
Elapsed time since start of process in milliseconds. More... | |
GAUDI_API long long | kernelTime (TimeType typ=milliSec, InfoType fetch=Times, long pid=-1) |
CPU kernel mode time of process in milliseconds. More... | |
GAUDI_API long long | userTime (TimeType typ=milliSec, InfoType fetch=Times, long pid=-1) |
CPU user mode time of process in milliseconds. More... | |
GAUDI_API long long | cpuTime (TimeType typ=milliSec, InfoType fetch=Times, long pid=-1) |
Consumed CPU time of process in milliseconds. More... | |
GAUDI_API long long | remainingTime (TimeType typ=milliSec, InfoType fetch=Quota, long pid=-1) |
Maximum processing time left for this process. More... | |
GAUDI_API long long | creationTime (TimeType typ=milliSec, InfoType fetch=Times, long pid=-1) |
Process Creation time. More... | |
GAUDI_API long long | systemStart (TimeType typ=Sec) |
Maximum processing time left for this process. More... | |
GAUDI_API long long | upTime (TimeType typ=Hour) |
Maximum processing time left for this process. More... | |
template<TimeType T> | |
GAUDI_API long long | currentTime () |
Retrieve absolute system time. More... | |
GAUDI_API long long | currentTime (TimeType typ=milliSec) |
Get current time in specificed units. More... | |
GAUDI_API long long | tickCount () |
Retrieve the number of ticks since system startup. More... | |
GAUDI_API ProcessTime | getProcessTime (long pid=-1) |
Retrieve the process time data for a process. More... | |
template<> | |
long long | adjustTime< Year > (long long t) |
template<> | |
long long | adjustTime< Day > (long long t) |
template<> | |
long long | adjustTime< Hour > (long long t) |
template<> | |
long long | adjustTime< Min > (long long t) |
template<> | |
long long | adjustTime< Sec > (long long t) |
template<> | |
long long | adjustTime< milliSec > (long long t) |
template<> | |
long long | adjustTime< microSec > (long long t) |
template<> | |
long long | adjustTime< nanoSec > (long long t) |
template<> | |
long long | adjustTime< Month > (long long t) |
template<> | |
long long | adjustTime< Native > (long long t) |
template<TimeType T> | |
long long | currentTime () |
Retrieve absolute system time. More... | |
template long long | currentTime< Year > () |
template long long | currentTime< Month > () |
template long long | currentTime< Day > () |
template long long | currentTime< Hour > () |
template long long | currentTime< Min > () |
template long long | currentTime< Sec > () |
template long long | currentTime< milliSec > () |
template long long | currentTime< microSec > () |
template long long | currentTime< nanoSec > () |
template long long | currentTime< Native > () |
ProcessDescriptor * | getProcess () |
Retrieve Process structure. More... | |
Note: OS specific details for environment resolution.
Note: OS specific details for process timing.
Note: OS specific details as well as Gaudi details may not occur in this definition file, because this header is the used by both, the OS specific implementations and the gaudi specific implementation.
ModuleInfo: OS specific details to access at run-time the module configuration of the process.
Note: OS specific details for memory usage.
Entrypoints:
Entrypoints:
M.Frank
Since e.g. IID is defined in both, this would lead automatically to complete comilation failures.....
Entrypoints:
On Windows NT Time is expressed as the amount of time that has elapsed since midnight on January 1, 1601 at Greenwich, England.
On Unix time is expressed as the amount of time that has elapsed since midnight on January 1, 1970 at Greenwich, England.
History :
+---------+----------------------------------------------+--------+ | Date | Comment | Who | +---------+----------------------------------------------+--------+ | 11/11/00| Initial version. | MF | +---------+----------------------------------------------+--------+
typedef void*( * System::Creator) () |
typedef unsigned long( * System::EntryPoint) (const unsigned long iid, void **ppvObject) |
typedef void * System::ImageHandle |
Definition of an image handle.
Definition at line 40 of file ModuleInfo.h.
typedef struct _PEB* System::PPEB |
Basic Process Information NtQueryInformationProcess using ProcessBasicInfo.
Definition at line 27 of file ProcessDescriptor.h.
typedef void * System::ProcessHandle |
Definition of the process handle.
Definition at line 42 of file ModuleInfo.h.
typedef void* System::ThreadHandle |
enum System::InfoType |
Enumeration for fetching information.
Enumerator | |
---|---|
NoFetch | |
RemainTime | |
Times | |
ProcessBasics | |
PriorityBoost | |
Memory | |
Quota | |
System | |
Modules | |
IO |
Definition at line 28 of file SystemBase.h.
enum System::MemoryUnit |
enum System::ModuleType |
enum System::PR_file_type |
Definition at line 32 of file ProcessDescriptor.cpp.
enum System::TimeType |
const std::string & System::accountName | ( | ) |
User login name.
Definition at line 353 of file System.cpp.
long System::adjustMemory | ( | MemoryUnit | typ, |
long | value | ||
) |
Convert time from kByte to requested representation (Experts only)
Convert requested memory value from kByte to requested value.
Definition at line 44 of file Memory.cpp.
|
inline |
Convert the time from OS native time to requested representation (Experts only)
long long System::adjustTime | ( | TimeType | typ, |
long long | timevalue | ||
) |
Convert time from OS native time to requested representation (Experts only)
unfortunately "-ansi" flag turn off the correct definition of CLK_TCK and forces it to be equal CLOCKS_PER_SEC, it is wrong!
t /= CLOCKS_PER_SEC; // needs division by clock tick unit
Definition at line 47 of file Timing.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
long System::affinityMask | ( | InfoType | fetch = ProcessBasics , |
long | pid = -1 |
||
) |
Basic Process Information: Affinity mask.
Definition at line 96 of file Memory.cpp.
long System::argc | ( | ) |
Number of arguments passed to the commandline (==numCmdLineArgs()); just to match argv call...
Number of arguments passed to the commandline.
Definition at line 362 of file System.cpp.
char ** System::argv | ( | ) |
char** command line arguments including executable name as arg[0]; You may not modify them!
Const char** command line arguments including executable name as arg[0].
Definition at line 371 of file System.cpp.
bool System::backTrace | ( | std::string & | btrace, |
const int | depth, | ||
const int | offset = 0 |
||
) |
Definition at line 447 of file System.cpp.
GAUDI_API int System::backTrace | ( | void ** | addresses, |
const int | depth | ||
) |
long System::basePriority | ( | InfoType | fetch = ProcessBasics , |
long | pid = -1 |
||
) |
Basic Process Information: Base priority.
Definition at line 76 of file Memory.cpp.
long System::breakExecution | ( | ) |
Break the execution of the application and invoke the debugger.
Definition at line 57 of file Debugger.cpp.
long System::breakExecution | ( | long | pid | ) |
Break the execution of the application and invoke the debugger in a remote process.
Break the execution of the application and invoke the debugger on a possibly remote process.
Definition at line 67 of file Debugger.cpp.
const std::vector< std::string > System::cmdLineArgs | ( | ) |
Command line arguments including executable name as arg[0] as vector of strings.
Const char** command line arguments including executable name as arg[0].
Definition at line 365 of file System.cpp.
Consumed CPU time of process in milliseconds.
CPU kernel time of process in milliseconds.
typ | Indicator or the unit the time will be returned. |
fetch | Indicator of the information to be fetched. If Fetch_None, the information will not be updated. |
pid | Process ID of which the information will be returned |
Definition at line 197 of file Timing.cpp.
Process Creation time.
Units of time between process creation and begin of epoche.
typ | Indicator or the unit the time will be returned. |
fetch | Indicator of the information to be fetched. If Fetch_None, the information will not be updated. |
pid | Process ID of which the information will be returned |
Definition at line 145 of file Timing.cpp.
|
inline |
|
inline |
Get current time in specificed units.
Retrieve current system time.
Definition at line 101 of file Timing.cpp.
template long long System::currentTime< Day > | ( | ) |
template long long System::currentTime< Hour > | ( | ) |
template long long System::currentTime< microSec > | ( | ) |
template long long System::currentTime< milliSec > | ( | ) |
template long long System::currentTime< Min > | ( | ) |
template long long System::currentTime< Month > | ( | ) |
template long long System::currentTime< nanoSec > | ( | ) |
template long long System::currentTime< Native > | ( | ) |
template long long System::currentTime< Sec > | ( | ) |
template long long System::currentTime< Year > | ( | ) |
Elapsed time since start of process in milliseconds.
Ellapsed time since start of process in milliseconds.
typ | Indicator or the unit the time will be returned. |
timevalue | Time value to be converted. |
Definition at line 169 of file Timing.cpp.
System::ImageHandle System::exeHandle | ( | ) |
Handle to the executable file running.
Definition at line 168 of file ModuleInfo.cpp.
const std::string & System::exeName | ( | ) |
long System::exitStatus | ( | InfoType | fetch = ProcessBasics , |
long | pid = -1 |
||
) |
Basic Process Information: Exit status (does not really make sense for the running process, but for others!)
Definition at line 103 of file Memory.cpp.
std::vector< std::string > System::getEnv | ( | ) |
get all environment variables
get all defined environment vars
Definition at line 417 of file System.cpp.
std::string System::getEnv | ( | const char * | var | ) |
get a particular environment variable (returning "UNKNOWN" if not set)
get a particular env var, return "UNKNOWN" if not defined
Definition at line 390 of file System.cpp.
bool System::getEnv | ( | const char * | var, |
std::string & | value | ||
) |
get a particular environment variable, storing the value in the passed string if the variable is set.
get a particular env var, storing the value in the passed string (if set)
Returns true if the variable is set, false otherwise.
Definition at line 400 of file System.cpp.
|
inline |
const std::string System::getErrorString | ( | unsigned long | error | ) |
unsigned long System::getLastError | ( | ) |
const std::string System::getLastErrorString | ( | ) |
Get last system error as string.
Retrieve last error code as string.
Definition at line 279 of file System.cpp.
unsigned long System::getProcedureByName | ( | ImageHandle | handle, |
const std::string & | name, | ||
Creator * | pFunction | ||
) |
Get a specific function defined in the DLL.
Definition at line 264 of file System.cpp.
unsigned long System::getProcedureByName | ( | ImageHandle | handle, |
const std::string & | name, | ||
EntryPoint * | pFunction | ||
) |
|
inline |
Retrieve Process structure.
Definition at line 142 of file ProcessDescriptor.h.
ProcessTime System::getProcessTime | ( | long | pid = -1 | ) |
Retrieve the process time data for a process.
Get the process time data for a process (by default the current) as a ProcessTime
object.
Definition at line 207 of file Timing.cpp.
GAUDI_API bool System::getStackLevel | ( | void * | addresses, |
void *& | addr, | ||
std::string & | fnc, | ||
std::string & | lib | ||
) |
std::string System::homeDirectory | ( | ) |
Definition at line 64 of file Environment.cpp.
const std::string & System::hostName | ( | ) |
Host name.
Definition at line 320 of file System.cpp.
int System::instructionsetLevel | ( | ) |
bool System::isEnvSet | ( | const char * | var | ) |
CPU kernel mode time of process in milliseconds.
CPU kernel time of process in milliseconds.
typ | Indicator or the unit the time will be returned. |
fetch | Indicator of the information to be fetched. If Fetch_None, the information will not be updated. |
pid | Process ID of which the information will be returned |
Definition at line 179 of file Timing.cpp.
const std::vector< std::string > System::linkedModules | ( | ) |
Vector of names of linked modules.
Definition at line 225 of file ModuleInfo.cpp.
unsigned long System::loadDynamicLib | ( | const std::string & | name, |
ImageHandle * | handle | ||
) |
Load dynamic link library.
Definition at line 150 of file System.cpp.
const std::string & System::machineType | ( | ) |
Machine type.
Definition at line 338 of file System.cpp.
long System::mappedMemory | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 197 of file Memory.cpp.
long System::mappedMemoryPeak | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
long System::maxMemoryLimit | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Quota , |
||
long | pid = -1 |
||
) |
System Process Limits: Maximum amount of virtual memory this process is allowed to use.
Definition at line 220 of file Memory.cpp.
long System::minMemoryLimit | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Quota , |
||
long | pid = -1 |
||
) |
System Process Limits: Minimum amount of virtual memory this process may use.
Definition at line 212 of file Memory.cpp.
System::ImageHandle System::moduleHandle | ( | ) |
Handle to currently executed module.
Definition at line 147 of file ModuleInfo.cpp.
const std::string & System::moduleName | ( | ) |
Get the name of the (executable/DLL) file without file-type.
Retrieve base name of module.
Definition at line 64 of file ModuleInfo.cpp.
const std::string & System::moduleNameFull | ( | ) |
Get the full name of the (executable/DLL) file.
Retrieve full name of module.
Definition at line 87 of file ModuleInfo.cpp.
System::ModuleType System::moduleType | ( | ) |
long System::nonPagedMemory | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: Current usage of non paged memory.
Basic Process Information: priority boost.
Definition at line 125 of file Memory.cpp.
long System::nonPagedMemoryLimit | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Quota , |
||
long | pid = -1 |
||
) |
System Process Limits: Maximum amount of non-paged memory this process is allowed to use.
Definition at line 133 of file Memory.cpp.
long System::nonPagedMemoryPeak | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: Peak usage of non paged memory.
Basic Process Information: priority boost.
Definition at line 117 of file Memory.cpp.
long System::numCmdLineArgs | ( | ) |
Basic Process Information: Number of page faults.
Basic Process Information: priority boost.
Definition at line 165 of file Memory.cpp.
const std::string & System::osName | ( | ) |
OS name.
Definition at line 326 of file System.cpp.
const std::string & System::osVersion | ( | ) |
OS version.
Definition at line 332 of file System.cpp.
long System::pagedMemory | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: Amount of paged memory currently occupied by the process 'pid'.
Definition at line 141 of file Memory.cpp.
long System::pagedMemoryLimit | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Quota , |
||
long | pid = -1 |
||
) |
Basic Process Information: Amount of paged memory that can be occupied by the process 'pid'.
Definition at line 157 of file Memory.cpp.
long System::pagedMemoryPeak | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: Maximum of paged memory occupied by the process 'pid'.
Definition at line 149 of file Memory.cpp.
long System::pagefileUsage | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: Current page file usage.
Basic Process Information: priority boost.
Definition at line 172 of file Memory.cpp.
long System::pagefileUsageLimit | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Quota , |
||
long | pid = -1 |
||
) |
Basic Process Information: Peak usage of page file.
Basic Process Information: priority boost.
Definition at line 187 of file Memory.cpp.
long System::pagefileUsagePeak | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: Peak usage of page file.
Basic Process Information: priority boost.
Definition at line 179 of file Memory.cpp.
long System::parentID | ( | InfoType | fetch = ProcessBasics , |
long | pid = -1 |
||
) |
Basic Process Information: Parent's process ID.
Definition at line 89 of file Memory.cpp.
std::string System::PathResolverFindDataFile | ( | const std::string & | logical_file_name | ) |
Definition at line 197 of file PathResolver.cpp.
std::string System::PathResolverFindXMLFile | ( | const std::string & | logical_file_name | ) |
Definition at line 193 of file PathResolver.cpp.
long System::priorityBoost | ( | InfoType | fetch = PriorityBoost , |
long | pid = -1 |
||
) |
void * System::processHandle | ( | ) |
long System::procID | ( | ) |
Basic Process Information: Process ID.
Definition at line 83 of file Memory.cpp.
Maximum processing time left for this process.
System Process Limits: Maximum processing time left for this process.
typ | Indicator or the unit the time will be returned. |
fetch | Indicator of the information to be fetched. If Fetch_None, the information will not be updated. |
pid | Process ID of which the information will be returned |
Definition at line 155 of file Timing.cpp.
StatusCode System::resolveEnv | ( | const std::string & | var, |
std::string & | res, | ||
int | recusions = 124 |
||
) |
Definition at line 57 of file Environment.cpp.
int System::setEnv | ( | const std::string & | name, |
const std::string & | value, | ||
int | overwrite = 1 |
||
) |
Set an environment variables.
set an environment variables.
If value is empty, the variable is removed from the environment. When overwrite is 0, the variable is not set if already present. Returns 0 on success, -1 on failure. See man 3 setenv.
Definition at line 503 of file System.cpp.
void System::setModuleHandle | ( | System::ImageHandle | handle | ) |
Maximum processing time left for this process.
Units of time since system startup and begin of epoche.
typ | Indicator or the unit the time will be returned. |
Definition at line 128 of file Timing.cpp.
std::string System::tempDirectory | ( | ) |
Definition at line 80 of file Environment.cpp.
|
inline |
long long System::tickCount | ( | ) |
Retrieve the number of ticks since system startup.
Definition at line 87 of file Timing.cpp.
const std::string System::typeinfoName | ( | const char * | class_name | ) |
Definition at line 317 of file System.cpp.
const std::string System::typeinfoName | ( | const std::type_info & | tinfo | ) |
Get platform independent information about the class type.
Definition at line 315 of file System.cpp.
unsigned long System::unloadDynamicLib | ( | ImageHandle | handle | ) |
Maximum processing time left for this process.
Units of time since system startup in requested units.
typ | Indicator or the unit the time will be returned. |
Definition at line 139 of file Timing.cpp.
CPU user mode time of process in milliseconds.
CPU kernel time of process in milliseconds.
typ | Indicator or the unit the time will be returned. |
fetch | Indicator of the information to be fetched. If Fetch_None, the information will not be updated. |
pid | Process ID of which the information will be returned |
Definition at line 189 of file Timing.cpp.
long System::virtualMemory | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 228 of file Memory.cpp.
long System::virtualMemoryLimit | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Quota , |
||
long | pid = -1 |
||
) |
System Process Limits: Maximum amount of the page file this process is allowed to use.
Definition at line 242 of file Memory.cpp.
long System::virtualMemoryPeak | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 235 of file Memory.cpp.