Skip to main content

Module system

Module system 

Source
Expand description

System introspection utilities.

Structs§

Cgroup
This process’s own cgroup v2 cgroup.
CgroupMemory
Memory use and limit of a cgroup v2 cgroup.

Functions§

process_rss_bytes
Returns the resident set size of this process, in bytes, or None when the operating system does not report it.
total_memory_bytes
Same as total_memory_megabyte, but in bytes.
total_memory_megabyte
Returns the memory, in megabytes (MB), of the current system, or None when the operating system does not report it.