Package logilab :: Package common :: Module proc
[frames] | no frames]

Module proc

source code

module providing:
* process information (linux specific: rely on /proc)
* a class for resource control (memory / time / cpu time)

This module doesn't work on windows platforms (only tested on linux)

:organization: Logilab
:copyright: 2007-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:license: General Public License version 2 - http://www.gnu.org/licenses

Classes
  LineageMemoryError
Error raised when the total amount of memory used by a process and...
  MemorySentinel
A class checking a process don't use too much memory in a separated...
  NoSuchProcess
  ProcInfo
provide access to process information found in /proc
  ProcInfoLoader
manage process information
  ResourceController
  ResourceError
Error raise when resource limit is reached
  TimeoutError
Error raised when the process is running for to much time
  XCPUError
Error raised when CPU Time limit is reached
Functions
 
proc_exists(pid)
check the a pid is registered in /proc...
source code
Variables
  CSTIME = 16
  CUTIME = 15
  PPID = 3
  RESOURCE_LIMIT_EXCEPTION = (<class 'logilab.common.proc.Resour...
  RLIMIT_AS = 9
  RLIMIT_CPU = 0
  SIGKILL = 9
  SIGUSR1 = 10
  SIGUSR2 = 12
  SIGXCPU = 24
  STIME = 14
  UTIME = 13
  VSIZE = 22
  __package__ = 'logilab.common'
Function Details

proc_exists(pid)

source code 
check the a pid is registered in /proc
raise NoSuchProcess exception if not


Variables Details

RESOURCE_LIMIT_EXCEPTION

Value:
(<class 'logilab.common.proc.ResourceError'>,
 <type 'exceptions.MemoryError'>)