Package solvcon :: Module anchor :: Class RuntimeStatAnchor
[hide private]
[frames] | no frames]

Class RuntimeStatAnchor

source code

object --+    
         |    
    Anchor --+
             |
            RuntimeStatAnchor

Report the Linux load average through solver. Reports are made after a full marching interation.

Instance Methods [hide private]
 
__init__(self, svr, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_get_record(self) source code
 
_msg_setting(self, record) source code
 
_msg_envar(self, record) source code
 
_msg_cpu(self, record) source code
 
_msg_mem(self, record) source code
 
_msg_loadavg(self, record) source code
 
postfull(self) source code

Inherited from Anchor: exhaust, postloop, postmarch, postsub, prefull, preloop, premarch, presub, provide

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
get_pstat(cls) source code
 
get_envar(cls) source code
 
plot_cpu(cls, lines, ax, xtime=False, showx=True, lloc='right') source code
 
plot_mem(cls, lines, ax, xtime=False, showx=True, lloc=None) source code
 
plot_loadavg(cls, lines, ax, xtime=False, showx=True, lloc='right') source code
 
_parse(cls, lines, key, xtime) source code
Static Methods [hide private]
 
get_cpu_frame() source code
 
calc_cpu_difference(frame0, frame1) source code
 
get_loadavg() source code
 
_parse_cpu(line) source code
 
_parse_mem(line) source code
 
_parse_loadavg(line) source code
Class Variables [hide private]
  PSTAT_KEYS = [('pid', <type 'int'>), ('comm', <type 'str'>), (...
  SETTING_KEYS = ['ibcthread']
  ENVAR_KEYS = ['KMP_AFFINITY']
  CPU_NAMES = ['us', 'sy', 'ni', 'id', 'wa', 'hi', 'si', 'st']
Instance Variables [hide private]
  cputime
marker for timing cpu usage.
  cputotal
flag to use total jiffy for cpu usage percentage.
  jiffytime
the time a jiffy is.
  reports
list what should be reported.

Inherited from Anchor: kws, svr

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, svr, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

postfull(self)

source code 
Overrides: Anchor.postfull

Class Variable Details [hide private]

PSTAT_KEYS

Value:
[('pid', <type 'int'>),
 ('comm', <type 'str'>),
 ('state', <type 'str'>),
 ('ppid', <type 'int'>),
 ('pgrp', <type 'int'>),
 ('session', <type 'int'>),
 ('tty_nr', <type 'int'>),
 ('tpgid', <type 'int'>),
...

Instance Variable Details [hide private]

jiffytime

the time a jiffy is. Default is 0.01 second.

reports

list what should be reported. Default is ['loadavg'] only.