xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

KStatList Class Reference

#include <kstats.h>

Collaboration diagram for KStatList:
[legend]

Public Types

enum  module {
  CPU_STAT , CPU_INFO , CPU_SYS , DISKS ,
  NETS
}
 

Public Member Functions

kstat_t * operator[] (size_t i)
 
size_t count (void)
 
void update (kstat_ctl_t *kcp)
 

Static Public Member Functions

static KStatListgetList (kstat_ctl_t *kcp, module m)
 

Private Member Functions

 KStatList (const KStatList &)
 
 ~KStatList (void)
 
KStatListoperator= (const KStatList &)
 
 KStatList (kstat_ctl_t *kcp, module m)
 
void getstats (kstat_ctl_t *kcp)
 

Private Attributes

kid_t _chain
 
module _m
 
std::vector< kstat_t * > _stats
 

Detailed Description

Definition at line 14 of file kstats.h.

Member Enumeration Documentation

◆ module

Enumerator
CPU_STAT 
CPU_INFO 
CPU_SYS 
DISKS 
NETS 

Definition at line 16 of file kstats.h.

Constructor & Destructor Documentation

◆ KStatList() [1/2]

KStatList::KStatList ( const KStatList )
private

◆ ~KStatList()

KStatList::~KStatList ( void  )
inlineprivate

Definition at line 58 of file kstats.h.

◆ KStatList() [2/2]

KStatList::KStatList ( kstat_ctl_t *  kcp,
module  m 
)
inlineprivate

Definition at line 60 of file kstats.h.

References _chain, _m, and getstats().

Member Function Documentation

◆ count()

size_t KStatList::count ( void  )
inline

Definition at line 47 of file kstats.h.

References _stats.

Referenced by CPUMeter::CPUMeter(), and NetMeter::getnetstats().

◆ getList()

static KStatList* KStatList::getList ( kstat_ctl_t *  kcp,
module  m 
)
inlinestatic

◆ getstats()

void KStatList::getstats ( kstat_ctl_t *  kcp)
inlineprivate

Definition at line 65 of file kstats.h.

References _m, _stats, CPU_INFO, CPU_STAT, CPU_SYS, DISKS, and NETS.

Referenced by KStatList(), and update().

◆ operator=()

KStatList& KStatList::operator= ( const KStatList )
private

◆ operator[]()

kstat_t* KStatList::operator[] ( size_t  i)
inline

Definition at line 44 of file kstats.h.

References _stats.

◆ update()

void KStatList::update ( kstat_ctl_t *  kcp)
inline

Definition at line 48 of file kstats.h.

References _chain, _stats, getstats(), and XOSDEBUG.

Referenced by NetMeter::getnetstats().

Member Data Documentation

◆ _chain

kid_t KStatList::_chain
private

Definition at line 85 of file kstats.h.

Referenced by KStatList(), and update().

◆ _m

module KStatList::_m
private

Definition at line 86 of file kstats.h.

Referenced by getstats(), and KStatList().

◆ _stats

std::vector<kstat_t *> KStatList::_stats
private

Definition at line 87 of file kstats.h.

Referenced by count(), getstats(), operator[](), and update().


The documentation for this class was generated from the following file: