resource
index
/usr/local/lib/python2.3/lib-dynload/resource.so

 
Classes
       
exceptions.Exception
error
__builtin__.object
struct_rusage

 
class error(exceptions.Exception)
     Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class struct_rusage(__builtin__.object)
    struct_rusage: Result from getrusage.
 
This object may be accessed either as a tuple of
    (utime,stime,maxrss,ixrss,idrss,isrss,minflt,majflt,
    nswap,inblock,oublock,msgsnd,msgrcv,nsignals,nvcsw,nivcsw)
or via the attributes ru_utime, ru_stime, ru_maxrss, and so on.
 
  Methods defined here:
__add__(...)
x.__add__(y) <==> x+y
__contains__(...)
x.__contains__(y) <==> y in x
__eq__(...)
x.__eq__(y) <==> x==y
__ge__(...)
x.__ge__(y) <==> x>=y
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__gt__(...)
x.__gt__(y) <==> x>y
__hash__(...)
x.__hash__() <==> hash(x)
__le__(...)
x.__le__(y) <==> x<=y
__len__(...)
x.__len__() <==> len(x)
__lt__(...)
x.__lt__(y) <==> x<y
__mul__(...)
x.__mul__(n) <==> x*n
__ne__(...)
x.__ne__(y) <==> x!=y
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__rmul__(...)
x.__rmul__(n) <==> n*x

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
n_fields = 16
n_sequence_fields = 16
n_unnamed_fields = 0
ru_idrss = <member 'ru_idrss' of 'resource.struct_rusage' objects>
unshared data size
ru_inblock = <member 'ru_inblock' of 'resource.struct_rusage' objects>
block input operations
ru_isrss = <member 'ru_isrss' of 'resource.struct_rusage' objects>
unshared stack size
ru_ixrss = <member 'ru_ixrss' of 'resource.struct_rusage' objects>
shared memory size
ru_majflt = <member 'ru_majflt' of 'resource.struct_rusage' objects>
page faults requiring I/O
ru_maxrss = <member 'ru_maxrss' of 'resource.struct_rusage' objects>
max. resident set size
ru_minflt = <member 'ru_minflt' of 'resource.struct_rusage' objects>
page faults not requiring I/O
ru_msgrcv = <member 'ru_msgrcv' of 'resource.struct_rusage' objects>
IPC messages received
ru_msgsnd = <member 'ru_msgsnd' of 'resource.struct_rusage' objects>
IPC messages sent
ru_nivcsw = <member 'ru_nivcsw' of 'resource.struct_rusage' objects>
involuntary context switches
ru_nsignals = <member 'ru_nsignals' of 'resource.struct_rusage' objects>
signals received
ru_nswap = <member 'ru_nswap' of 'resource.struct_rusage' objects>
number of swap outs
ru_nvcsw = <member 'ru_nvcsw' of 'resource.struct_rusage' objects>
voluntary context switches
ru_oublock = <member 'ru_oublock' of 'resource.struct_rusage' objects>
block output operations
ru_stime = <member 'ru_stime' of 'resource.struct_rusage' objects>
system time used
ru_utime = <member 'ru_utime' of 'resource.struct_rusage' objects>
user time used

 
Functions
       
getpagesize(...)
getrlimit(...)
getrusage(...)
setrlimit(...)

 
Data
        RLIMIT_AS = 9
RLIMIT_CORE = 4
RLIMIT_CPU = 0
RLIMIT_DATA = 2
RLIMIT_FSIZE = 1
RLIMIT_MEMLOCK = 8
RLIMIT_NOFILE = 7
RLIMIT_NPROC = 6
RLIMIT_OFILE = 7
RLIMIT_RSS = 5
RLIMIT_STACK = 3
RLIM_INFINITY = -1L
RUSAGE_BOTH = -2
RUSAGE_CHILDREN = -1
RUSAGE_SELF = 0