| # Gaudi Framework, version v20r4
Generated: 8 Jan 2009

# Memory.h

Go to the documentation of this file.

    00001 // $Header: /tmp/svngaudi/tmp.jEpFh25751/Gaudi/GaudiKernel/GaudiKernel/Memory.h,v 1.2 2006/12/10 20:29:17 leggett Exp $
    00002 //====================================================================
    00003 //      Memory.h
    00004 //--------------------------------------------------------------------
    00005 //
    00006 //      Package    : System (The LHCb System service)
    00007 //
    00008 //  Description: Information of memory usage from a given process
    00009 //
    00010 //      Author     : M.Frank
    00011 //  Created    : 13/11/00
    00012 //      Changes    :
    00013 //
    00014 //====================================================================
    00015 #ifndef GAUDIKERNEL_MEMORY_H
    00016 #define GAUDIKERNEL_MEMORY_H
    00017
    00018 // Framework include files
    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   long adjustMemory(MemoryUnit typ, long value);
    00061   long procID();
    00063   long parentID(InfoType fetch = ProcessBasics, long pid = -1);
    00065   long affinityMask(InfoType fetch = ProcessBasics, long pid = -1);
    00067   long exitStatus(InfoType fetch = ProcessBasics, long pid = -1);
    00069   long basePriority(InfoType fetch = ProcessBasics, long pid = -1);
    00071   long priorityBoost(InfoType fetch = PriorityBoost, long pid = -1);
    00072
    00074   long numPageFault(InfoType fetch = Memory, long pid = -1);
    00076   long pagefileUsage(MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1);
    00078   long pagefileUsagePeak(MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1);
    00080   long pagefileUsageLimit(MemoryUnit unit = kByte, InfoType fetch = Quota, long pid = -1);
    00081
    00083   long nonPagedMemory( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
    00085   long nonPagedMemoryPeak( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
    00087   long nonPagedMemoryLimit( MemoryUnit unit = kByte, InfoType fetch = Quota, long pid = -1 );
    00088
    00090   long pagedMemory( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
    00092   long pagedMemoryPeak( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
    00094   long pagedMemoryLimit( MemoryUnit unit = kByte, InfoType fetch = Quota, long pid = -1 );
    00095
    00097   long minMemoryLimit( MemoryUnit unit = kByte, InfoType fetch = Quota, long pid = -1 );
    00099   long maxMemoryLimit( MemoryUnit unit = kByte, InfoType fetch = Quota, long pid = -1 );
    00101   long mappedMemory( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
    00103   long mappedMemoryPeak( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
    00105   long virtualMemory( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
    00107   long virtualMemoryPeak( MemoryUnit unit = kByte, InfoType fetch = Memory, long pid = -1 );
    00109   long virtualMemoryLimit( MemoryUnit unit = kByte, InfoType fetch = Quota, long pid = -1 );
    00110 }
    00111 #endif //GAUDIKERNEL_MEMORY_H