memusage.h

Go to the documentation of this file.
00001 
00007 #ifndef MEMUSAGE_H
00008 #define MEMUSAGE_H
00009 
00010 unsigned long memusage(const char **source = 0);
00011 
00012 inline double memusage_kB() { return memusage() / 1024.; }
00013 inline double memusage_MB() { return memusage() / 1048576.; }
00014 
00015 class memusageinit {
00016 public:
00017   memusageinit();
00018 private:
00019   static int initialized;
00020   static unsigned long sbrkval;
00021   static unsigned long memusage_sbrk();
00022   friend unsigned long memusage(const char **source);
00023 };
00024 
00025 static memusageinit memusageinitobject;
00026 
00027 #endif
00028 

Generated on Mon Nov 20 01:17:13 2017 for NAMD by  doxygen 1.4.7