Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.

Module: google.appengine.api.runtime

Runtime Utilities API.

.. deprecated:: 1.8.1

Modules

runtime module: Runtime Utilities API.

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.