File: intratemeter.h

package info (click to toggle)
xosview 1.24-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,184 kB
  • sloc: cpp: 11,975; makefile: 154; ansic: 32; awk: 13; sh: 8
file content (37 lines) | stat: -rw-r--r-- 791 bytes parent folder | download | duplicates (5)
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
//
//  Copyright (c) 2014 by Tomi Tapper (tomi.o.tapper@jyu.fi)
//
//  Based on bsd/intratemeter.* by
//    Copyright (c) 1999 by Brian Grayson (bgrayson@netbsd.org)
//  and on linux/intmeter.* by
//    Copyright (c) 1994, 1995, 2006 by Mike Romberg ( mike.romberg@noaa.gov )
//
//  This file may be distributed under terms of the GPL
//

#ifndef _IRQRATEMETER_H_
#define _IRQRATEMETER_H_

#include "fieldmetergraph.h"
#include "xosview.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:
  void getinfo( void );

private:
  unsigned long long _lastirqs;
  unsigned int _cpucount;
};


#endif