00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef GAUDIKERNEL_MEMORY_H
00016 #define GAUDIKERNEL_MEMORY_H
00017
00018
00019 #include "GaudiKernel/Kernel.h"
00020 #include "GaudiKernel/SystemBase.h"
00021
00022
00055 namespace System {
00057 enum MemoryUnit { Byte, kByte, MByte, GByte, TByte, PByte, EByte };
00059 GAUDI_API long adjustMemory(MemoryUnit typ, long value);
00061 GAUDI_API long procID();
00063 GAUDI_API long parentID(InfoType fetch = ProcessBasics, long pid = -1);
00065 GAUDI_API long affinityMask(InfoType fetch = ProcessBasics, long pid = -1);
00067 GAUDI_API long exitStatus(InfoType fetch = ProcessBasics, long pid = -1);
00069 GAUDI_API long basePriority(InfoType fetch = ProcessBasics, long pid = -1);
00071 GAUDI_API long priorityBoost(InfoType fetch = PriorityBoost, long pid = -1);
00072
00074 GAUDI_API long numPageFault(InfoType fetch = Memory, long pid = -1);
00076 GAUDI_API long pagefileUsage(MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1);
00078 GAUDI_API long pagefileUsagePeak(MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1);
00080 GAUDI_API long pagefileUsageLimit(MemoryUnit unit = kByte, InfoType fetch = Quota, long pid = -1);
00081
00083 GAUDI_API long nonPagedMemory( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
00085 GAUDI_API long nonPagedMemoryPeak( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
00087 GAUDI_API long nonPagedMemoryLimit( MemoryUnit unit = kByte, InfoType fetch = Quota, long pid = -1 );
00088
00090 GAUDI_API long pagedMemory( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
00092 GAUDI_API long pagedMemoryPeak( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
00094 GAUDI_API long pagedMemoryLimit( MemoryUnit unit = kByte, InfoType fetch = Quota, long pid = -1 );
00095
00097 GAUDI_API long minMemoryLimit( MemoryUnit unit = kByte, InfoType fetch = Quota, long pid = -1 );
00099 GAUDI_API long maxMemoryLimit( MemoryUnit unit = kByte, InfoType fetch = Quota, long pid = -1 );
00101 GAUDI_API long mappedMemory( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
00103 GAUDI_API long mappedMemoryPeak( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
00105 GAUDI_API long virtualMemory( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
00107 GAUDI_API long virtualMemoryPeak( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
00109 GAUDI_API long virtualMemoryLimit( MemoryUnit unit = kByte, InfoType fetch = Quota, long pid = -1 );
00110 }
00111 #endif //GAUDIKERNEL_MEMORY_H