Module resource :: Class struct_rusage
[hide private]
[frames] | no frames]

type struct_rusage

object --+
         |
        struct_rusage

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.

Instance Methods [hide private]
 
__add__(x, y)
x+y
 
__contains__(x, y)
y in x
 
__eq__(x, y)
x==y
 
__ge__(x, y)
x>=y
 
__getitem__(x, y)
x[y]
 
__getslice__(x, i, j)
x[i:j]
 
__gt__(x, y)
x>y
 
__hash__(x)
hash(x)
 
__le__(x, y)
x<=y
 
__len__(x)
len(x)
 
__lt__(x, y)
x<y
 
__mul__(x, n)
x*n
 
__ne__(x, y)
x!=y
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__reduce__(...)
 
__repr__(x)
repr(x)
 
__rmul__(x, n)
n*x
Class Variables [hide private]
  n_fields = 16
  n_sequence_fields = 16
  n_unnamed_fields = 0
Properties [hide private]
  ru_idrss
unshared data size
  ru_inblock
block input operations
  ru_isrss
unshared stack size
  ru_ixrss
shared memory size
  ru_majflt
page faults requiring I/O
  ru_maxrss
max.
  ru_minflt
page faults not requiring I/O
  ru_msgrcv
IPC messages received
  ru_msgsnd
IPC messages sent
  ru_nivcsw
involuntary context switches
  ru_nsignals
signals received
  ru_nswap
number of swap outs
  ru_nvcsw
voluntary context switches
  ru_oublock
block output operations
  ru_stime
system time used
  ru_utime
user time used
Method Details [hide private]

__getslice__(x, i, j)
(Slicling operator)

 

x[i:j]

Use of negative indices is not supported.

__hash__(x)
(Hashing function)

 

hash(x)

Overrides: object.__hash__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__reduce__(...)

 
Overrides: object.__reduce__
(inherited documentation)

__repr__(x)
(Representation operator)

 

repr(x)

Overrides: object.__repr__

Property Details [hide private]

ru_maxrss

max. resident set size