"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/irix65/memmeter.h" (11 Jul 2020, 626 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 Stefan Eilemann (eilemann@gmail.com)
    3 //
    4 #ifndef _MEMMETER_H_
    5 #define _MEMMETER_H_
    6 
    7 #include "fieldmetergraph.h"
    8 #include <sys/types.h>
    9 #include <sys/sysmp.h>
   10 #include <sys/sysinfo.h> /* for SAGET and MINFO structures */
   11 
   12 class MemMeter : public FieldMeterGraph {
   13  public:
   14     MemMeter(XOSView *parent);
   15     ~MemMeter(void);
   16 
   17     const char *name(void) const { return "MemMeter"; }  
   18     void checkevent( void );
   19 
   20     void checkResources(void);
   21 
   22  protected:
   23     //  struct pst_status *stats_;
   24     int _pageSize;
   25 
   26     void getmeminfo( void );
   27 
   28  private:
   29     struct rminfo  mp;
   30     int            minfosz;
   31 };
   32 
   33 
   34 #endif