Python 3.9 is now generally available.

Module: google.appengine.api.runtime.runtime

Runtime Utilities API.

.. deprecated:: 1.8.1

Utilities for interacting with the Python Runtime.


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.