The Gaudi Framework
v30r3 (a5ef0a68)
|
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 |
Provides access to process information. More... | |
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 *) |
Get the human readable type name from a typeinfo name. More... | |
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 longlong | adjustTime (TimeType typ, longlong 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 longlong | ellapsedTime (TimeType typ=milliSec, InfoType fetch=Times, long pid=-1) |
Elapsed time since start of process in milliseconds. More... | |
GAUDI_API longlong | kernelTime (TimeType typ=milliSec, InfoType fetch=Times, long pid=-1) |
CPU kernel mode time of process in milliseconds. More... | |
GAUDI_API longlong | userTime (TimeType typ=milliSec, InfoType fetch=Times, long pid=-1) |
CPU user mode time of process in milliseconds. More... | |
GAUDI_API longlong | cpuTime (TimeType typ=milliSec, InfoType fetch=Times, long pid=-1) |
Consumed CPU time of process in milliseconds. More... | |
GAUDI_API longlong | remainingTime (TimeType typ=milliSec, InfoType fetch=Quota, long pid=-1) |
Maximum processing time left for this process. More... | |
GAUDI_API longlong | creationTime (TimeType typ=milliSec, InfoType fetch=Times, long pid=-1) |
Process Creation time. More... | |
GAUDI_API longlong | systemStart (TimeType typ=Sec) |
Maximum processing time left for this process. More... | |
GAUDI_API longlong | upTime (TimeType typ=Hour) |
Maximum processing time left for this process. More... | |
template<TimeType T> | |
GAUDI_API longlong | currentTime () |
Retrieve absolute system time. More... | |
GAUDI_API longlong | currentTime (TimeType typ=milliSec) |
Get current time in specificed units. More... | |
GAUDI_API longlong | 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> | |
longlong | currentTime () |
Retrieve absolute system time. More... | |
template longlong | currentTime< Year > () |
template longlong | currentTime< Month > () |
template longlong | currentTime< Day > () |
template longlong | currentTime< Hour > () |
template longlong | currentTime< Min > () |
template longlong | currentTime< Sec > () |
template longlong | currentTime< milliSec > () |
template longlong | currentTime< microSec > () |
template longlong | currentTime< nanoSec > () |
template longlong | 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 31 of file ModuleInfo.h.
typedef struct _PEB* System::PPEB |
Basic Process Information NtQueryInformationProcess using ProcessBasicInfo.
Definition at line 18 of file ProcessDescriptor.h.
typedef void * System::ProcessHandle |
Definition of the process handle.
Definition at line 33 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 19 of file SystemBase.h.
enum System::MemoryUnit |
Unit of memory.
Enumerator | |
---|---|
Byte | |
kByte | |
MByte | |
GByte | |
TByte | |
PByte | |
EByte |
Definition at line 56 of file Memory.h.
enum System::ModuleType |
Enumerator | |
---|---|
UNKNOWN | |
SHAREDLIB | |
EXECUTABLE |
Definition at line 29 of file ModuleInfo.h.
enum System::PR_file_type |
Enumerator | |
---|---|
PR_regular_file | |
PR_directory |
Definition at line 36 of file PathResolver.cpp.
Enumerator | |
---|---|
PR_local | |
PR_recursive |
Definition at line 38 of file PathResolver.cpp.
Definition at line 23 of file ProcessDescriptor.cpp.
enum System::TimeType |
Time type for conversion.
Enumerator | |
---|---|
Year | |
Month | |
Day | |
Hour | |
Min | |
Sec | |
milliSec | |
microSec | |
nanoSec | |
Native |
Definition at line 58 of file Timing.h.
const std::string & System::accountName | ( | ) |
User login name.
User login name.
Definition at line 371 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 34 of file Memory.cpp.
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 37 of file Timing.cpp.
|
inline |
Convert the time from OS native time to requested representation (Experts only)
|
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 90 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 381 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 391 of file System.cpp.
GAUDI_API int System::backTrace | ( | void ** | addresses, |
const int | depth | ||
) |
bool System::backTrace | ( | std::string & | btrace, |
const int | depth, | ||
const int | offset = 0 |
||
) |
Definition at line 474 of file System.cpp.
long System::basePriority | ( | InfoType | fetch = ProcessBasics , |
long | pid = -1 |
||
) |
Basic Process Information: Base priority.
Definition at line 67 of file Memory.cpp.
long System::breakExecution | ( | ) |
Break the execution of the application and invoke the debugger.
Definition at line 48 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 59 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].
Command line arguments including executable name as arg[0] as vector of strings.
Definition at line 384 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 196 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 138 of file Timing.cpp.
Retrieve absolute system time.
typ | Indicator or the unit the time will be returned. |
Definition at line 269 of file Timing.h.
Get current time in specificed units.
Retrieve current system time.
Definition at line 91 of file Timing.cpp.
|
inline |
Retrieve absolute system time.
typ | Indicator or the unit the time will be returned. |
Definition at line 269 of file Timing.h.
template longlong System::currentTime< Day > | ( | ) |
template longlong System::currentTime< Hour > | ( | ) |
template longlong System::currentTime< microSec > | ( | ) |
template longlong System::currentTime< milliSec > | ( | ) |
template longlong System::currentTime< Min > | ( | ) |
template longlong System::currentTime< Month > | ( | ) |
template longlong System::currentTime< nanoSec > | ( | ) |
template longlong System::currentTime< Native > | ( | ) |
template longlong System::currentTime< Sec > | ( | ) |
template longlong 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 164 of file Timing.cpp.
System::ImageHandle System::exeHandle | ( | ) |
Handle to the executable file running.
Definition at line 164 of file ModuleInfo.cpp.
const std::string & System::exeName | ( | ) |
Name of the executable file running.
Definition at line 201 of file ModuleInfo.cpp.
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 98 of file Memory.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 411 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 422 of file System.cpp.
|
inline |
Definition at line 91 of file System.h.
std::vector< std::string > System::getEnv | ( | ) |
get all environment variables
get all defined environment vars
Definition at line 440 of file System.cpp.
const std::string System::getErrorString | ( | unsigned long | error | ) |
Retrieve error code as string for a given error.
Definition at line 301 of file System.cpp.
unsigned long System::getLastError | ( | ) |
const std::string System::getLastErrorString | ( | ) |
Get last system error as string.
Retrieve last error code as string.
Definition at line 294 of file System.cpp.
unsigned long System::getProcedureByName | ( | ImageHandle | handle, |
const std::string & | name, | ||
EntryPoint * | pFunction | ||
) |
Get a specific function defined in the DLL.
Definition at line 230 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 277 of file System.cpp.
|
inline |
Retrieve Process structure.
Definition at line 135 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 208 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 61 of file Environment.cpp.
const std::string & System::hostName | ( | ) |
int System::instructionsetLevel | ( | ) |
bool System::isEnvSet | ( | const char * | var | ) |
Check if an environment variable is set or not.
Definition at line 433 of file System.cpp.
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 174 of file Timing.cpp.
const std::vector< std::string > System::linkedModules | ( | ) |
Vector of names of linked modules.
Definition at line 224 of file ModuleInfo.cpp.
unsigned long System::loadDynamicLib | ( | const std::string & | name, |
ImageHandle * | handle | ||
) |
Load dynamic link library.
Definition at line 154 of file System.cpp.
const std::string & System::machineType | ( | ) |
Machine type.
Machine type.
Definition at line 358 of file System.cpp.
long System::mappedMemory | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 204 of file Memory.cpp.
long System::mappedMemoryPeak | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 212 of file Memory.cpp.
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 230 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 221 of file Memory.cpp.
System::ImageHandle System::moduleHandle | ( | ) |
Handle to currently executed module.
Definition at line 141 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 54 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 78 of file ModuleInfo.cpp.
System::ModuleType System::moduleType | ( | ) |
Get type of the module.
Definition at line 105 of file ModuleInfo.cpp.
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 123 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 132 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 114 of file Memory.cpp.
long System::numCmdLineArgs | ( | ) |
Number of arguments passed to the commandline.
Definition at line 378 of file System.cpp.
Basic Process Information: Number of page faults.
Basic Process Information: priority boost.
Definition at line 168 of file Memory.cpp.
const std::string & System::osName | ( | ) |
const std::string & System::osVersion | ( | ) |
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 159 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 150 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 176 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 193 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 184 of file Memory.cpp.
long System::parentID | ( | InfoType | fetch = ProcessBasics , |
long | pid = -1 |
||
) |
Basic Process Information: Parent's process ID.
Definition at line 82 of file Memory.cpp.
std::string System::PathResolverFindDataFile | ( | const std::string & | logical_file_name | ) |
Definition at line 207 of file PathResolver.cpp.
std::string System::PathResolverFindXMLFile | ( | const std::string & | logical_file_name | ) |
Definition at line 202 of file PathResolver.cpp.
long System::priorityBoost | ( | InfoType | fetch = PriorityBoost , |
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 106 of file Memory.cpp.
void * System::processHandle | ( | ) |
long System::procID | ( | ) |
Basic Process Information: Process ID.
Definition at line 75 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 149 of file Timing.cpp.
StatusCode System::resolveEnv | ( | const std::string & | var, |
std::string & | res, | ||
int | recusions = 124 |
||
) |
Definition at line 51 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 534 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 119 of file Timing.cpp.
std::string System::tempDirectory | ( | ) |
Definition at line 78 of file Environment.cpp.
|
inline |
longlong System::tickCount | ( | ) |
Retrieve the number of ticks since system startup.
Definition at line 76 of file Timing.cpp.
const std::string System::typeinfoName | ( | const std::type_info & | tinfo | ) |
Get platform independent information about the class type.
Definition at line 332 of file System.cpp.
const std::string System::typeinfoName | ( | const char * | class_name | ) |
Get the human readable type name from a typeinfo name.
Definition at line 334 of file System.cpp.
unsigned long System::unloadDynamicLib | ( | ImageHandle | handle | ) |
unload dynamic link library
Definition at line 204 of file System.cpp.
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 131 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 185 of file Timing.cpp.
long System::virtualMemory | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 239 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 255 of file Memory.cpp.
long System::virtualMemoryPeak | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 247 of file Memory.cpp.