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)  

loadmeter.h
Go to the documentation of this file.
1 //
2 // Initial port performed by Greg Onufer (exodus@cheers.bungi.com)
3 //
4 #ifndef _LOADMETER_H_
5 #define _LOADMETER_H_
6 
7 #include "fieldmetergraph.h"
8 #include "xosview.h"
9 #include "kstats.h"
10 #include <kstat.h>
11 
12 
13 class LoadMeter : public FieldMeterGraph {
14  public:
15  LoadMeter(XOSView *parent, kstat_ctl_t *kcp);
16  ~LoadMeter(void);
17 
18  const char *name(void) const { return "LoadMeter"; }
19  void checkevent(void);
20  void checkResources(void);
21 
22  protected:
23  void getloadinfo(void);
24  void getspeedinfo(void);
25 
26  private:
30  int lastalarmstate;
33  kstat_ctl_t *kc;
34 #ifdef NO_GETLOADAVG
35  kstat_t *ksp;
36 #endif
37 };
38 
39 #endif
unsigned long procloadcol
Definition: loadmeter.h:27
unsigned int old_cpu_speed
Definition: loadmeter.h:29
const char * name(void) const
Definition: loadmeter.h:18
int warnThreshold
Definition: loadmeter.h:32
LoadMeter(XOSView *parent)
Definition: loadmeter.cc:24
void getloadinfo(void)
void getspeedinfo(void)
bool do_cpu_speed
Definition: loadmeter.h:31
void checkevent(void)
void checkResources(void)
kstat_ctl_t * kc
Definition: loadmeter.h:33
unsigned int cur_cpu_speed
Definition: loadmeter.h:29
int lastalarmstate
Definition: loadmeter.h:32
unsigned long warnloadcol
Definition: loadmeter.h:27
KStatList * cpulist
Definition: loadmeter.h:32
unsigned long critloadcol
Definition: loadmeter.h:27
unsigned int critThreshold
Definition: loadmeter.h:28
~LoadMeter(void)