"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/linux/intratemeter.h" (11 Jul 2020, 791 Bytes) of package /linux/misc/xosview-1.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "intratemeter.h" see the Fossies "Dox" file reference documentation.

    1 //
    2 //  Copyright (c) 2014 by Tomi Tapper (tomi.o.tapper@jyu.fi)
    3 //
    4 //  Based on bsd/intratemeter.* by
    5 //    Copyright (c) 1999 by Brian Grayson (bgrayson@netbsd.org)
    6 //  and on linux/intmeter.* by
    7 //    Copyright (c) 1994, 1995, 2006 by Mike Romberg ( mike.romberg@noaa.gov )
    8 //
    9 //  This file may be distributed under terms of the GPL
   10 //
   11 
   12 #ifndef _IRQRATEMETER_H_
   13 #define _IRQRATEMETER_H_
   14 
   15 #include "fieldmetergraph.h"
   16 #include "xosview.h"
   17 
   18 
   19 class IrqRateMeter : public FieldMeterGraph {
   20 public:
   21   IrqRateMeter( XOSView *parent );
   22   ~IrqRateMeter( void );
   23 
   24   const char *name( void ) const { return "IrqRateMeter"; }
   25   void checkevent( void );
   26   void checkResources( void );
   27 
   28 protected:
   29   void getinfo( void );
   30 
   31 private:
   32   unsigned long long _lastirqs;
   33   unsigned int _cpucount;
   34 };
   35 
   36 
   37 #endif