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