【发布时间】:2019-10-04 14:13:33
【问题描述】:
我正在将我现有的 py 2.7 存储库迁移到目前在 Google App Engine 上工作的 py 3.7。
我发现了一个在项目中广泛使用的 runtime 库(Runtime Utilities API)。
from google.appengine.api.runtime import runtime
import logging
logging.info(runtime.memory_usage())
这将输出内存使用统计信息,其中数字以 MB 表示。例如:
current: 464.0859375
average1m: 464
average10m: 379.575
我正在尝试找到与 python 3.7 兼容的替代库,但在 GAE 中没有找到。有人可以帮忙吗? 谷歌方面有没有我不知道的替代品?
【问题讨论】:
标签: google-app-engine python-3.7