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 available in preview.

google.appengine.api.runtime.cpu_usage

Returns a SystemStat describing cpu usage, expressed in mcycles.

The returned object has the following fields:

  • total: total mcycles consumed by this instance
  • rate1m: average mcycles consumed per second over the last minute
  • rate10m: average mcycles consumed per second over the last ten minutes

Functions for converting from mcycles to cpu-seconds are located in the quotas API.