Package common :: Module proc :: Class ProcInfo
[frames] | no frames]

Class ProcInfo

source code

logilab.common.tree.Node --+
                           |
                          ProcInfo

provide access to process information found in /proc

Instance Methods
 
__init__(self, pid) source code
 
memory_usage(self)
return the memory usage of the process in Ko
source code
 
lineage_memory_usage(self) source code
 
time(self, children=0)
return the number of jiffies that this process has been scheduled...
source code
 
status(self)
return the list of fields found in /proc/<pid>/stat
source code
 
name(self)
return the process name found in /proc/<pid>/stat...
source code
 
age(self)
return the age of the process...
source code
Method Details

time(self, children=0)

source code 
return the number of jiffies that this process has been scheduled
in user and kernel mode

name(self)

source code 
return the process name found in /proc/<pid>/stat
        

age(self)

source code 
return the age of the process