Ejemplo n.º 1
0
def GetRequestCpuUsage():
  """Returns the number of megacycles used so far by this request.

  Returns:
    The number of megacycles used so far by this request. Does not include CPU
    used by API calls.
  """
  return _apphosting_runtime___python__apiproxy.get_request_cpu_usage()
Ejemplo n.º 2
0
def GetRequestCpuUsage():
    """Returns the number of megacycles used so far by this request.

  Returns:
    The number of megacycles used so far by this request. Does not include CPU
    used by API calls.
  """
    return _apphosting_runtime___python__apiproxy.get_request_cpu_usage()
Ejemplo n.º 3
0
def get_request_cpu_usage():
  """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.
  """

  if _apphosting_runtime___python__apiproxy:
    return _apphosting_runtime___python__apiproxy.get_request_cpu_usage()
  return 0
Ejemplo n.º 4
0
def get_request_cpu_usage():
    """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.
  """

    if _apphosting_runtime___python__apiproxy:
        return _apphosting_runtime___python__apiproxy.get_request_cpu_usage()
    return 0