//
// Copyright (c) 1999 by Brian Grayson (bgrayson@netbsd.org)
//
// This file may be distributed under terms of the GPL or of the BSD
// license, whichever you choose. The full license notices are
// contained in the files COPYING.GPL and COPYING.BSD, which you
// should have received. If not, contact one of the xosview
// authors for a copy.
//
// $Id$
//
#ifndef _IRQRATEMETER_H_
#define _IRQRATEMETER_H_
#define IRQRATEMETER_H_CVSID "$Id$"
#include "fieldmetergraph.h"
#include "kernel.h"
class IrqRateMeter : public FieldMeterGraph {
public:
IrqRateMeter( XOSView *parent );
~IrqRateMeter( void );
const char *name( void ) const { return "IrqRateMeter"; }
void checkevent( void );
void checkResources( void );
protected:
unsigned long irqs_[NUM_INTR], lastirqs_[NUM_INTR];
unsigned long delta;
void getinfo( void );
unsigned long oncol_, idlecol_;
bool kernelHasStats_;
};
#endif
syntax highlighted by Code2HTML, v. 0.9.1