xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

intmeter.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 1994, 1995 by Mike Romberg ( romberg@fsl.noaa.gov )
3 //
4 // This file may be distributed under terms of the GPL
5 //
6 
7 #ifndef _INTMETER_H_
8 #define _INTMETER_H_
9 
10 #include "bitmeter.h"
11 #include "xosview.h"
12 #include <map>
13 
14 
15 class IntMeter : public BitMeter {
16 public:
17  IntMeter( XOSView *parent, const char *title = "", const char *legend = "",
18  int dolegends = 0, int dousedlegends = 0 );
19  ~IntMeter( void );
20 
21  const char *name( void ) const { return "IntMeter"; }
22  void checkevent( void );
23  void checkResources( void );
24 
25 private:
26  uint64_t *irqs_, *lastirqs_;
27  unsigned int *inbrs_;
28  unsigned int irqcount_;
29  std::map<int,int> realintnum_;
30 
31 protected:
32  void getirqs( void );
33  void updateirqcount( bool init = false );
34 };
35 
36 
37 #endif
uint64_t * irqs_
Definition: intmeter.h:26
void getirqs(void)
Definition: intmeter.cc:57
IntMeter(XOSView *parent, const char *title="", const char *legend="", int dolegends=0, int dousedlegends=0)
Definition: intmeter.cc:14
uint64_t * lastirqs_
Definition: intmeter.h:26
void checkResources(void)
Definition: intmeter.cc:50
void checkevent(void)
Definition: intmeter.cc:31
std::map< int, int > realintnum_
Definition: intmeter.h:29
void updateirqcount(bool init=false)
Definition: intmeter.cc:61
unsigned int * inbrs_
Definition: intmeter.h:27
unsigned int irqcount_
Definition: intmeter.h:28
const char * name(void) const
Definition: intmeter.h:21
~IntMeter(void)
Definition: intmeter.cc:25
const char * title(void)
Definition: meter.h:25
void dolegends(int val)
Definition: meter.h:29
const char * legend(void)
Definition: meter.h:27
void dousedlegends(int val)
Definition: meter.h:30