1 // 2 // Initial port performed by Stefan Eilemann (eilemann@gmail.com) 3 // 4 #ifndef _MEMMETER_H_ 5 #define _MEMMETER_H_ 6 7 #include "fieldmetergraph.h" 8 #include <sys/types.h> 9 #include <sys/sysmp.h> 10 #include <sys/sysinfo.h> /* for SAGET and MINFO structures */ 11 12 class MemMeter : public FieldMeterGraph { 13 public: 14 MemMeter(XOSView *parent); 15 ~MemMeter(void); 16 17 const char *name(void) const { return "MemMeter"; } 18 void checkevent( void ); 19 20 void checkResources(void); 21 22 protected: 23 // struct pst_status *stats_; 24 int _pageSize; 25 26 void getmeminfo( void ); 27 28 private: 29 struct rminfo mp; 30 int minfosz; 31 }; 32 33 34 #endif