如何衡量Google App Engine中的内存使用情况?

时间:2013-12-08 12:49:17

标签: google-app-engine

我有这样的代码如何测量加载模块的内存使用情况?

可选择将模块加载为该模块的依赖项?

import module_one
import module_two

def getModuleMemoryUsage(module):
  # what I should do to read memory usage?
  return 0

def getMemoryUsage():
  a = []
  a.append(getMemoryUsage('module_one'))
  a.append(getMemoryUsage('module_two'))
  return sum(a)

我需要使用哪种功能或模块来衡量与Google App Engine实例相关的内存使用情况来控制它 - 我可以使用相同的Python标准功能吗?

0 个答案:

没有答案
相关问题