![]() |
The Gaudi Framework
v26r3
|
Note: OS specific details for environment resolution. More...
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 *) |
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... | |
GAUDI_API longlong | currentTime (TimeType typ=milliSec) |
Retrieve absolute system time. 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) |
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 30 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 32 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 | |
NoFetch | |
RemainTime | |
Times | |
ProcessBasics | |
PriorityBoost | |
Memory | |
Quota | |
System | |
Modules | |
IO |
Definition at line 18 of file SystemBase.h.
enum System::InfoType |
Enumeration for fetching information.
Enumerator | |
---|---|
NoFetch | |
RemainTime | |
Times | |
ProcessBasics | |
PriorityBoost | |
Memory | |
Quota | |
System | |
Modules | |
IO | |
NoFetch | |
RemainTime | |
Times | |
ProcessBasics | |
PriorityBoost | |
Memory | |
Quota | |
System | |
Modules | |
IO |
Definition at line 18 of file SystemBase.h.
enum System::MemoryUnit |
Unit of memory.
Enumerator | |
---|---|
Byte | |
kByte | |
MByte | |
GByte | |
TByte | |
PByte | |
EByte | |
Byte | |
kByte | |
MByte | |
GByte | |
TByte | |
PByte | |
EByte |
Definition at line 57 of file Memory.h.
enum System::MemoryUnit |
Unit of memory.
Enumerator | |
---|---|
Byte | |
kByte | |
MByte | |
GByte | |
TByte | |
PByte | |
EByte | |
Byte | |
kByte | |
MByte | |
GByte | |
TByte | |
PByte | |
EByte |
Definition at line 57 of file Memory.h.
enum System::ModuleType |
Enumerator | |
---|---|
UNKNOWN | |
SHAREDLIB | |
EXECUTABLE | |
UNKNOWN | |
SHAREDLIB | |
EXECUTABLE |
Definition at line 28 of file ModuleInfo.h.
enum System::ModuleType |
Enumerator | |
---|---|
UNKNOWN | |
SHAREDLIB | |
EXECUTABLE | |
UNKNOWN | |
SHAREDLIB | |
EXECUTABLE |
Definition at line 28 of file ModuleInfo.h.
enum System::PR_file_type |
Enumerator | |
---|---|
PR_regular_file | |
PR_directory |
Definition at line 35 of file PathResolver.cpp.
Enumerator | |
---|---|
PR_local | |
PR_recursive |
Definition at line 40 of file PathResolver.cpp.
Definition at line 20 of file ProcessDescriptor.cpp.
enum System::TimeType |
Time type for conversion.
Enumerator | |
---|---|
Year | |
Month | |
Day | |
Hour | |
Min | |
Sec | |
milliSec | |
microSec | |
nanoSec | |
Native | |
Year | |
Month | |
Day | |
Hour | |
Min | |
Sec | |
milliSec | |
microSec | |
nanoSec | |
Native |
Definition at line 51 of file Timing.h.
enum System::TimeType |
Time type for conversion.
Enumerator | |
---|---|
Year | |
Month | |
Day | |
Hour | |
Min | |
Sec | |
milliSec | |
microSec | |
nanoSec | |
Native | |
Year | |
Month | |
Day | |
Hour | |
Min | |
Sec | |
milliSec | |
microSec | |
nanoSec | |
Native |
Definition at line 51 of file Timing.h.
GAUDI_API const std::string & System::accountName | ( | ) |
GAUDI_API 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 35 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 38 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 |
GAUDI_API long System::affinityMask | ( | InfoType | fetch = ProcessBasics , |
long | pid = -1 |
||
) |
Basic Process Information: Affinity mask.
Definition at line 74 of file Memory.cpp.
GAUDI_API 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 536 of file System.cpp.
GAUDI_API 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].
added by I.B.
Definition at line 603 of file System.cpp.
GAUDI_API int System::backTrace | ( | void ** | addresses, |
const int | depth | ||
) |
GAUDI_API bool System::backTrace | ( | std::string & | btrace, |
const int | depth, | ||
const int | offset = 0 |
||
) |
Definition at line 686 of file System.cpp.
GAUDI_API long System::basePriority | ( | InfoType | fetch = ProcessBasics , |
long | pid = -1 |
||
) |
Basic Process Information: Base priority.
Definition at line 52 of file Memory.cpp.
GAUDI_API long System::breakExecution | ( | ) |
Break the execution of the application and invoke the debugger.
Definition at line 47 of file Debugger.cpp.
GAUDI_API 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 58 of file Debugger.cpp.
GAUDI_API 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 541 of file System.cpp.
GAUDI_API longlong System::cpuTime | ( | TimeType | typ = milliSec , |
InfoType | fetch = Times , |
||
long | pid = -1 |
||
) |
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 169 of file Timing.cpp.
GAUDI_API longlong System::creationTime | ( | TimeType | typ = milliSec , |
InfoType | fetch = Times , |
||
long | pid = -1 |
||
) |
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 115 of file Timing.cpp.
Retrieve absolute system time.
Retrieve current system time.
typ | Indicator or the unit the time will be returned. |
Definition at line 80 of file Timing.cpp.
GAUDI_API longlong System::ellapsedTime | ( | TimeType | typ = milliSec , |
InfoType | fetch = Times , |
||
long | pid = -1 |
||
) |
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 140 of file Timing.cpp.
GAUDI_API ImageHandle System::exeHandle | ( | ) |
Handle to the executable file running.
Definition at line 172 of file ModuleInfo.cpp.
GAUDI_API const std::string & System::exeName | ( | ) |
Name of the executable file running.
Definition at line 208 of file ModuleInfo.cpp.
GAUDI_API 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 82 of file Memory.cpp.
GAUDI_API 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 618 of file System.cpp.
GAUDI_API 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 628 of file System.cpp.
|
inline |
Definition at line 91 of file System.h.
GAUDI_API std::vector< std::string > System::getEnv | ( | ) |
get all environment variables
get all defined environment vars
Definition at line 647 of file System.cpp.
GAUDI_API const std::string System::getErrorString | ( | unsigned long | error | ) |
GAUDI_API unsigned long System::getLastError | ( | ) |
GAUDI_API const std::string System::getLastErrorString | ( | ) |
Get last system error as string.
Retrieve last error code as string.
Definition at line 254 of file System.cpp.
GAUDI_API unsigned long System::getProcedureByName | ( | ImageHandle | handle, |
const std::string & | name, | ||
EntryPoint * | pFunction | ||
) |
Get a specific function defined in the DLL.
Definition at line 189 of file System.cpp.
GAUDI_API unsigned long System::getProcedureByName | ( | ImageHandle | handle, |
const std::string & | name, | ||
Creator * | pFunction | ||
) |
Get a specific function defined in the DLL.
Definition at line 239 of file System.cpp.
System::ProcessDescriptor * System::getProcess | ( | ) |
GAUDI_API 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 179 of file Timing.cpp.
GAUDI_API bool System::getStackLevel | ( | void * | addresses, |
void *& | addr, | ||
std::string & | fnc, | ||
std::string & | lib | ||
) |
GAUDI_API std::string System::homeDirectory | ( | ) |
Definition at line 60 of file Environment.cpp.
GAUDI_API const std::string & System::hostName | ( | ) |
GAUDI_API int System::instructionsetLevel | ( | ) |
GAUDI_API bool System::isEnvSet | ( | const char * | var | ) |
Check if an environment variable is set or not.
Definition at line 638 of file System.cpp.
GAUDI_API longlong System::kernelTime | ( | TimeType | typ = milliSec , |
InfoType | fetch = Times , |
||
long | pid = -1 |
||
) |
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 149 of file Timing.cpp.
GAUDI_API const std::vector< std::string > System::linkedModules | ( | ) |
Vector of names of linked modules.
Definition at line 232 of file ModuleInfo.cpp.
GAUDI_API unsigned long System::loadDynamicLib | ( | const std::string & | name, |
ImageHandle * | handle | ||
) |
Load dynamic link library.
Definition at line 124 of file System.cpp.
GAUDI_API const std::string & System::machineType | ( | ) |
GAUDI_API long System::mappedMemory | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 181 of file Memory.cpp.
GAUDI_API long System::mappedMemoryPeak | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 189 of file Memory.cpp.
GAUDI_API 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 205 of file Memory.cpp.
GAUDI_API 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 197 of file Memory.cpp.
GAUDI_API ImageHandle System::moduleHandle | ( | ) |
Handle to currently executed module.
Definition at line 141 of file ModuleInfo.cpp.
GAUDI_API const std::string & System::moduleName | ( | ) |
Get the name of the (executable/DLL) file without file-type.
Retrieve base name of module.
Definition at line 55 of file ModuleInfo.cpp.
GAUDI_API 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.
GAUDI_API ModuleType System::moduleType | ( | ) |
Get type of the module.
Definition at line 105 of file ModuleInfo.cpp.
GAUDI_API 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 106 of file Memory.cpp.
GAUDI_API 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 114 of file Memory.cpp.
GAUDI_API 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 98 of file Memory.cpp.
GAUDI_API long System::numCmdLineArgs | ( | ) |
Number of arguments passed to the commandline.
Definition at line 531 of file System.cpp.
Basic Process Information: Number of page faults.
Basic Process Information: priority boost.
Definition at line 146 of file Memory.cpp.
GAUDI_API const std::string & System::osName | ( | ) |
OS name.
Definition at line 445 of file System.cpp.
GAUDI_API const std::string & System::osVersion | ( | ) |
GAUDI_API 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 122 of file Memory.cpp.
GAUDI_API 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 138 of file Memory.cpp.
GAUDI_API 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 130 of file Memory.cpp.
GAUDI_API 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 154 of file Memory.cpp.
GAUDI_API 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 170 of file Memory.cpp.
GAUDI_API 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 162 of file Memory.cpp.
GAUDI_API long System::parentID | ( | InfoType | fetch = ProcessBasics , |
long | pid = -1 |
||
) |
Basic Process Information: Parent's process ID.
Definition at line 66 of file Memory.cpp.
GAUDI_API std::string System::PathResolverFindDataFile | ( | const std::string & | logical_file_name | ) |
Definition at line 228 of file PathResolver.cpp.
GAUDI_API std::string System::PathResolverFindXMLFile | ( | const std::string & | logical_file_name | ) |
Definition at line 223 of file PathResolver.cpp.
GAUDI_API long System::priorityBoost | ( | InfoType | fetch = PriorityBoost , |
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 90 of file Memory.cpp.
GAUDI_API ProcessHandle System::processHandle | ( | ) |
GAUDI_API long System::procID | ( | ) |
Basic Process Information: Process ID.
Definition at line 60 of file Memory.cpp.
GAUDI_API longlong System::remainingTime | ( | TimeType | typ = milliSec , |
InfoType | fetch = Quota , |
||
long | pid = -1 |
||
) |
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 125 of file Timing.cpp.
GAUDI_API StatusCode System::resolveEnv | ( | const std::string & | var, |
std::string & | res, | ||
int | recusions = 124 |
||
) |
Definition at line 51 of file Environment.cpp.
GAUDI_API 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 756 of file System.cpp.
GAUDI_API void System::setModuleHandle | ( | ImageHandle | handle | ) |
Attach module handle.
Definition at line 137 of file ModuleInfo.cpp.
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 98 of file Timing.cpp.
GAUDI_API std::string System::tempDirectory | ( | ) |
Definition at line 79 of file Environment.cpp.
|
inline |
Retrieve the number of ticks since system startup.
Definition at line 66 of file Timing.cpp.
GAUDI_API const std::string System::typeinfoName | ( | const std::type_info & | ) |
Get platform independent information about the class type.
Definition at line 299 of file System.cpp.
GAUDI_API const std::string System::typeinfoName | ( | const char * | ) |
Definition at line 303 of file System.cpp.
GAUDI_API unsigned long System::unloadDynamicLib | ( | ImageHandle | handle | ) |
unload dynamic link library
Definition at line 163 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 109 of file Timing.cpp.
GAUDI_API longlong System::userTime | ( | TimeType | typ = milliSec , |
InfoType | fetch = Times , |
||
long | pid = -1 |
||
) |
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 159 of file Timing.cpp.
GAUDI_API long System::virtualMemory | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 213 of file Memory.cpp.
GAUDI_API 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 229 of file Memory.cpp.
GAUDI_API long System::virtualMemoryPeak | ( | MemoryUnit | unit = kByte , |
InfoType | fetch = Memory , |
||
long | pid = -1 |
||
) |
Basic Process Information: priority boost.
Definition at line 221 of file Memory.cpp.