Package pymeterlib :: Package plugins :: Package solaris :: Module CPUStates :: Class CPUStates
[show private | hide private]
[frames | no frames]

Class CPUStates


CPU States (User, System, Wait, Idle) from mpstat output (usr, sys, wt, idl).

Notes:

Method Summary
  __init__(self)
List of strings format_output(self, output)
Parse all CPU States (User, System, Wait, Idle) from mpstat output (usr, sys, wt, idl).

Class Variable Summary
list label = ['CPU User Time', 'CPU System Time', 'CPU I/O Wa...

Method Details

format_output(self, output)

Parse all CPU States (User, System, Wait, Idle) from mpstat output (usr, sys, wt, idl).

On a multiprocessor system, calculate the average across all processors.
Parameters:
output - Command response output string
Returns:
CPU states (usr, sys, wt, idl)
           (type=List of strings)

Class Variable Details

label

Type:
list
Value:
['CPU User Time', 'CPU System Time', 'CPU I/O Wait Time', 'CPU Idle Ti\
me']                                                                   

Generated by Epydoc 2.1 on Fri Mar 17 09:16:19 2006 http://epydoc.sf.net