1 // 2 // Copyright (c) 1994, 1995 by Mike Romberg ( romberg@fsl.noaa.gov ) 3 // 2007 by Samuel Thibault ( samuel.thibault@ens-lyon.org ) 4 // 5 // This file may be distributed under terms of the GPL 6 // 7 8 #ifndef _SWAPMETER_H_ 9 #define _SWAPMETER_H_ 10 11 12 #include "fieldmetergraph.h" 13 14 extern "C" { 15 #include <mach/mach_types.h> 16 #include <mach/default_pager_types.h> 17 } 18 19 class SwapMeter : public FieldMeterGraph { 20 public: 21 SwapMeter( XOSView *parent ); 22 ~SwapMeter( void ); 23 24 const char *name( void ) const { return "SwapMeter"; } 25 void checkevent( void ); 26 27 void checkResources( void ); 28 protected: 29 30 void getswapinfo( void ); 31 private: 32 33 struct default_pager_info def_pager_info; 34 mach_port_t def_pager; 35 }; 36 37 38 #endif