Google Cloud功能的内存探查器? [英] Memory profiler for Google cloud function?

查看:57
本文介绍了Google Cloud功能的内存探查器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Google云功能并遇到内存不足错误:

I'm running a Google cloud function and getting out-of-memory error:

错误:超出内存限制.函数调用被中断.

但是,当我在本地对其进行分析时,它使用的内存不会超过500-600Mb(我的gcf内存分配为2Gb)

However, when I profile it locally, it doesn't use more than 500-600Mb (My gcf memory allocation is 2Gb)

是否可以使用逐行分析器

Is there a way to have a line-by-line profiler to

a)查看哪些步骤导致最大的内存增加,并且

a) to see which steps result in highest memory increases, and

b)查看云功能的当前内存使用情况?

b) view current memory usage of the cloud function?

推荐答案

这正是 Stackdriver Profiler 用于,但是Python支持目前是计划中的".

This is precisely what Stackdriver Profiler is for, however Python support is currently "Planned".

这篇关于Google Cloud功能的内存探查器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆