Example #1
0
def GetRequestApiCpuUsage():
  """Returns the number of megacycles used by API calls.

  Returns:
    The number of megacycles used by API calls so far during this request. Does
    not include CPU used by the request code itself.
  """
  return _apphosting_runtime___python__apiproxy.get_request_api_cpu_usage()
def GetRequestApiCpuUsage():
    """Returns the number of megacycles used by API calls.

  Returns:
    The number of megacycles used by API calls so far during this request. Does
    not include CPU used by the request code itself.
  """
    return _apphosting_runtime___python__apiproxy.get_request_api_cpu_usage()
Example #3
0
def get_request_api_cpu_usage():
  """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.
  """

  if _apphosting_runtime___python__apiproxy:
    return _apphosting_runtime___python__apiproxy.get_request_api_cpu_usage()
  return 0
Example #4
0
def get_request_api_cpu_usage():
    """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.
  """

    if _apphosting_runtime___python__apiproxy:
        return _apphosting_runtime___python__apiproxy.get_request_api_cpu_usage(
        )
    return 0