"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/sunos5/intratemeter.h" (11 Jul 2020, 730 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 //  File based on bsd/intratemeter.* by
    5 //  Copyright (c) 1999 by Brian Grayson (bgrayson@netbsd.org)
    6 //
    7 //  This file may be distributed under terms of the GPL
    8 //
    9 //
   10 
   11 #ifndef _IRQRATEMETER_H_
   12 #define _IRQRATEMETER_H_
   13 
   14 #include "fieldmetergraph.h"
   15 #include "xosview.h"
   16 #include "kstats.h"
   17 #include <kstat.h>
   18 
   19 
   20 class IrqRateMeter : public FieldMeterGraph {
   21 public:
   22     IrqRateMeter(XOSView *parent, kstat_ctl_t *kc);
   23     ~IrqRateMeter(void);
   24 
   25     const char *name(void) const { return "IrqRateMeter"; }
   26     void checkevent(void);
   27     void checkResources(void);
   28 
   29 protected:
   30     void getinfo(void);
   31 
   32 private:
   33     uint64_t _lastirqcount;
   34     kstat_ctl_t *_kc;
   35     KStatList *_cpus;
   36 };
   37 
   38 
   39 #endif