💾 Archived View for tris.fyi › pydoc › resource captured on 2023-01-29 at 03:49:21. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-01-08)
-=-=-=-=-=-=-
This module has no docstring.
Base class for I/O related errors.
with_traceback(...) Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>
characters_written = <attribute 'characters_written' of 'OSError' objects>
errno = <member 'errno' of 'OSError' objects> POSIX exception code
filename = <member 'filename' of 'OSError' objects> exception filename
filename2 = <member 'filename2' of 'OSError' objects> second exception filename
strerror = <member 'strerror' of 'OSError' objects> exception strerror
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.
count(self, value, /) Return number of occurrences of value.
index(self, value, start=0, stop=9223372036854775807, /) Return first index of value. Raises ValueError if the value is not present.
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
getpagesize()
getrlimit(resource, /)
getrusage(who, /)
prlimit(...) prlimit(pid, resource, [limits])
setrlimit(resource, limits, /)
RLIMIT_AS = 9
RLIMIT_CORE = 4
RLIMIT_CPU = 0
RLIMIT_DATA = 2
RLIMIT_FSIZE = 1
RLIMIT_MEMLOCK = 8
RLIMIT_MSGQUEUE = 12
RLIMIT_NICE = 13
RLIMIT_NOFILE = 7
RLIMIT_NPROC = 6
RLIMIT_OFILE = 7
RLIMIT_RSS = 5
RLIMIT_RTPRIO = 14
RLIMIT_RTTIME = 15
RLIMIT_SIGPENDING = 11
RLIMIT_STACK = 3
RLIM_INFINITY = -1
RUSAGE_CHILDREN = -1
RUSAGE_SELF = 0
RUSAGE_THREAD = 1