是否可以使用 d8 来测量内存使用情况?

发布于 2024-08-11 02:49:25 字数 177 浏览 1 评论 0原文

随着 Closure 编译器的发布,我希望看看使用该编译器的 js 文件和未使用该编译器的 js 文件在内存使用方面是否存在差异。

特别是,在像 Palm 的 WebOS 这样的移动平台上,可用内存量非常有限,这意味着每一点都会有所帮助。

编辑:我应该指出 d8 是 v8 javascript 引擎调试器。

With the release of the Closure compiler, I was hoping to see if there was a difference in memory usage between a js file using the compiler and one which had not.

In particular, on a mobile platform like Palm's WebOS, the very limited amount of memory available means that every little bit will help.

EDIT: I should point out that d8 is the v8 javascript engine debugger.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄居人 2024-08-18 02:49:25

我不了解 d8,但由于 V8 调试器 API 不了解有任何会消耗内存的东西,所以我猜答案是

不过,V8 分析器接受标志来提供有关堆使用情况的信息 ,这应该是你想要的。检查项目的 wiki 页面以获取更多说明。

I don't know about d8 but since the V8 debugger API doesn't have anything that can give you memory consumption so I'm guessing that the answer is no.

However the V8 profiler accepts flags to give information about the heap usage, which should be what you want. Check the project's wiki page for further instructions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文