Package sysmon :: Module local :: Class LocalProcessor
[hide private]
[frames] | no frames]

Class LocalProcessor

source code

system.SystemPart --+    
                    |    
     system.Processor --+
                        |
                       LocalProcessor

Represents a local processor

Instance Methods [hide private]
 
__init__(self, id, name)
Creates a local processor.
source code
 
name(self)
An appropriate name for the processor, like cpu4.
source code
 
dict(self)
Returns a dictionary with a massive amount of meta-information, by string.
source code
 
do_update(self)
Perform the actual update.
source code

Inherited from system.Processor: freq, max_freq, modelname, usage

Inherited from system.SystemPart: callback, delay, set_delay, set_system, system, update

Static Methods [hide private]

Inherited from system.SystemPart: null

Method Details [hide private]

__init__(self, id, name)
(Constructor)

source code 

Creates a local processor.

Ordinarily, the name will be the same as cpu<id>.

Overrides: system.SystemPart.__init__

name(self)

source code 

An appropriate name for the processor, like cpu4.

Overrides: system.Processor.name
(inherited documentation)

dict(self)

source code 

Returns a dictionary with a massive amount of meta-information, by string.

Most implementations will take this directly out of /proc/cpuinfo. It is generally bad form to use this directly in an application.

Overrides: system.Processor.dict
(inherited documentation)

do_update(self)

source code 

Perform the actual update.

Part implementations should override this method.

Overrides: system.SystemPart.do_update
(inherited documentation)