View source on GitHub |
Runtime Utilities API.
.. deprecated:: 1.8.1
Utilities for interacting with the Python Runtime.
Functions
cpu_usage(...)
: Returns a SystemStat describing cpu usage, expressed in mcycles.
is_shutting_down(...)
: Returns true if the server is shutting down.
memory_usage(...)
: Returns a SystemStat describing memory usage, expressed in MB.
set_shutdown_hook(...)
: Registers a function to be called when the server is shutting down.