"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/bsd/intratemeter.h" (11 Jul 2020, 810 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) 1999 by Brian Grayson (bgrayson@netbsd.org)
    3 //
    4 //  This file may be distributed under terms of the GPL or of the BSD
    5 //    license, whichever you choose.  The full license notices are
    6 //    contained in the files COPYING.GPL and COPYING.BSD, which you
    7 //    should have received.  If not, contact one of the xosview
    8 //    authors for a copy.
    9 //
   10 
   11 #ifndef _IRQRATEMETER_H_
   12 #define _IRQRATEMETER_H_
   13 
   14 #include "fieldmetergraph.h"
   15 #include "xosview.h"
   16 
   17 
   18 class IrqRateMeter : public FieldMeterGraph {
   19 public:
   20     IrqRateMeter( XOSView *parent );
   21     ~IrqRateMeter( void );
   22 
   23     const char *name( void ) const { return "IrqRateMeter"; }
   24     void checkevent( void );
   25     void checkResources( void );
   26 
   27 private:
   28     uint64_t *irqs_, *lastirqs_;
   29     unsigned int irqcount_;
   30 
   31 protected:
   32     void getinfo( void );
   33 };
   34 
   35 
   36 #endif