gpt4 book ai didi

python - GAE/P : Testbed stub for runtime. 内存使用情况?

转载 作者:太空宇宙 更新时间:2023-11-04 05:42:03 24 4
gpt4 key购买 nike

我刚刚了解到您可以在 App Engine 中执行此操作以获取您的实例内存使用情况:

from google.appengine.api.runtime import memory_usage
memory_usage().current()

这很酷,但是当我运行测试时,我得到这个错误:

File ".../google-cloud-sdk/platform/google_appengine/google/appengine/api/apiproxy_stub_map.py", line 322, in MakeSyncCall assert stub, 'No api proxy found for service "%s"' % service AssertionError: No api proxy found for service "system"

testbed 中有这个 stub 吗?没有 init_system_stub

最佳答案

根据这个wonky GAE reference guide ,看起来 google.appengine.api.runtime 自版本 1.8.1 以来已被弃用。根据the SDK Release notes , 版本 1.8.1 已经两年多了。谷歌可能刚刚放弃了对它的支持。

不过,如果他们先发出运行时警告就好了。

关于python - GAE/P : Testbed stub for runtime. 内存使用情况?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33584104/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com