"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/sunos5/memmeter.h" (11 Jul 2020, 536 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 "memmeter.h" see the Fossies "Dox" file reference documentation.

    1 //  
    2 //  Initial port performed by Greg Onufer (exodus@cheers.bungi.com)
    3 //
    4 #ifndef _MEMMETER_H_
    5 #define _MEMMETER_H_
    6 
    7 #include "fieldmetergraph.h"
    8 #include "xosview.h"
    9 #include <kstat.h>
   10 
   11 
   12 class MemMeter : public FieldMeterGraph {
   13  public:
   14     MemMeter(XOSView *parent, kstat_ctl_t *kcp);
   15     ~MemMeter(void);
   16 
   17     const char *name(void) const { return "MemMeter"; }
   18     void checkevent( void );
   19     void checkResources(void);
   20 
   21  protected:
   22     void getmeminfo( void );
   23 
   24  private:
   25     int pageSize;
   26     kstat_ctl_t *kc;
   27     kstat_t *ksp_sp, *ksp_zfs;
   28 };
   29 
   30 
   31 #endif