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

Class LocalMemory

source code

system.SystemPart --+    
                    |    
        system.Memory --+
                        |
                       LocalMemory

Represents a local memory (RAM) bank

Instance Methods [hide private]
 
__init__(self, filename='/proc/meminfo')
Creates a memory bank from the file.
source code
 
do_update(self)
Perform the actual update.
source code
 
dict(self)
Returns a dictionary with a massive amount of meta-information, by string.
source code

Inherited from system.Memory: active_memory, free_memory, free_swap, inactive_memory, total_memory, total_swap, unused_memory

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, filename='/proc/meminfo')
(Constructor)

source code 

Creates a memory bank from the file.

By default, the file /proc/meminfo is used.

Overrides: system.SystemPart.__init__

do_update(self)

source code 

Perform the actual update.

Part implementations should override this method.

Overrides: system.SystemPart.do_update
(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/meminfo. It is generally bad form to use this in an application.

Overrides: system.Memory.dict
(inherited documentation)