1 // 2 // Copyright (c) 1996, 2007 by Massimiliano Ghilardi ( ghilardi@cibs.sns.it ) 3 // 4 // This file may be distributed under terms of the GPL 5 // 6 7 #ifndef _PAGEMETER_H_ 8 #define _PAGEMETER_H_ 9 10 #include "fieldmetergraph.h" 11 #include "xosview.h" 12 13 14 class PageMeter : public FieldMeterGraph { 15 public: 16 PageMeter( XOSView *parent, float max ); 17 ~PageMeter( void ); 18 19 const char *name( void ) const { return "PageMeter"; } 20 void checkevent( void ); 21 22 void checkResources( void ); 23 protected: 24 unsigned long pageinfo_[2][2]; 25 int pageindex_; 26 float maxspeed_; 27 bool _vmstat; 28 const char *_statFileName; 29 30 void getpageinfo( void ); 31 void getvmpageinfo( void ); 32 void updateinfo(void); 33 private: 34 }; 35 36 #endif