CMS 3D CMS Logo

pidInfo.h

Go to the documentation of this file.
00001 #ifndef pidInfo_h
00002 #define pidInfo_h
00003 
00004 
00005 #include <string>
00006 #include <iosfwd>
00007 
00008 
00013 class pidInfo
00014 {
00015 public:
00017   pidInfo();
00018 
00019   explicit pidInfo(const std::string & s);
00020   explicit pidInfo(std::ostream & co, const std::string & s="");
00021 
00023   ~pidInfo(){}
00024 
00025   unsigned int totalMemory() const { return pagesz*memsz;}
00026   unsigned int residentMemory() const { return pagesz*rsssz;}
00027 
00028 private:
00029 
00030 
00031   void load(std::ostream * co);
00032 
00033   // this is wrong as it is os specific not compiler specific...
00034 #ifdef __SUNPRO_CC
00035   string command(const std::string & pid);
00036 #endif
00037 
00038   unsigned int memsz;
00039   unsigned int rsssz;
00040 
00041   static const unsigned int pagesz;
00042 
00043 
00044 }; 
00045 
00046 #endif
00047 
00048 
00049 
00050 
00051 
00052 

Generated on Tue Jun 9 17:48:52 2009 for CMSSW by  doxygen 1.5.4