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.