google.appengine.api.quota module
Summary
Access to quota usage for this application.
Contents
- google.appengine.api.quota.MCYCLES_PER_SECOND = 1200.0source
Megacycles to CPU seconds. Convert by using a 1.2 GHz 64-bit x86 CPU.
- google.appengine.api.quota.cpu_seconds_to_megacycles(cpu_secs)source
Convert an input value in CPU-seconds to megacycles.
Returns an integer representing the megacycles the input CPU-seconds value converts to.
- google.appengine.api.quota.get_request_api_cpu_usage()source
Get the amount of CPU used so far by API calls during the current request.
Returns the number of megacycles used so far by API calls for the current request. Does not include CPU used by code in the request itself.
Does nothing when used in the dev_appserver.
- google.appengine.api.quota.get_request_cpu_usage()source
Get the amount of CPU used so far for the current request.
Returns the number of megacycles used so far for the current request. Does not include CPU used by API calls.
Does nothing when used in the dev_appserver.
- google.appengine.api.quota.megacycles_to_cpu_seconds(mcycles)source
Convert an input value in megacycles to CPU-seconds.
Returns a double representing the CPU-seconds the input megacycle value converts to.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.