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, 2006 by Mike Romberg ( mike.romberg@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 "cpumeter.h"
13 
14 
15 class IntMeter : public BitMeter {
16 public:
17  IntMeter( XOSView *parent, int cpu = 0 );
18  ~IntMeter( void );
19 
20  void checkevent( void );
21  void checkResources( void );
22  static int countCPUs( void ) { return CPUMeter::countCPUs(); }
23 
24 private:
25  unsigned long *_irqs, *_lastirqs;
26  int _cpu;
27  bool _separate;
28 
29  void getirqs( void );
30  void updateirqcount( int n, bool init );
31  void initirqcount( void );
32 };
33 
34 #endif
static int countCPUs(void)
Definition: cpumeter.cc:300
bool _separate
Definition: intmeter.h:27
int _cpu
Definition: intmeter.h:26
void getirqs(void)
IntMeter(XOSView *parent, const char *title="", const char *legend="", int dolegends=0, int dousedlegends=0)
Definition: intmeter.cc:14
unsigned long * _lastirqs
Definition: intmeter.h:25
void checkResources(void)
void initirqcount(void)
Definition: intmeter.cc:156
void checkevent(void)
void updateirqcount(bool init=false)
Definition: intmeter.cc:61
unsigned long * _irqs
Definition: intmeter.h:25
static int countCPUs(void)
Definition: intmeter.h:22
~IntMeter(void)