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

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.