用于Firefox的Javascript内存分析器 [英] Javascript memory profiler for Firefox

查看:148
本文介绍了用于Firefox的Javascript内存分析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一个Firefox的工具/插件/功能,它会转储您在页面/脚本中创建的Javascript对象的内存使用情况?我知道Firebug的分析器,但是我想要的不仅仅是时间。类似于Yourkit对Java内存使用情况的分析。

原因是同事在数组中使用id作为keys,并且创建了1000个当他这样做的空插槽。他认为这是无害的,而我的意见不同。我想提供一些证明,证明我是否正确。

解决方案

我还没有试过这个软件验证工具,但Mozilla有一些工具可以跟踪firefox为消除泄漏而消耗的整体内存: b http://www.mozilla.org/performance/tools.html





https://wiki.mozilla.org/Performance :Leak_Tools



还有一个人说,为了避免大型数组在封闭的情况下,朝向文章底部

http://ajax.sys-con.com/node/352585

Is there a tool/plugin/function for Firefox that'll dump out a memory usage of Javascript objects that you create in a page/script? I know about Firebug's profiler but I'd like something more than just times. Something akin to what Yourkit has for Java profiling of memory usage.

Reason is that a co-worker is using id's for "keys" in an array and is creating 1000's of empty slots when he does this. He's of the opinion that this is harmless whereas my opinion differs. I'd like to offer some proof to prove whether I'm right or not.

解决方案

I haven't tried the Sofware verify tools, but Mozilla has tools that track overall memory consumed by firefox for the purpose of stemming leaks:

http://www.mozilla.org/performance/tools.html

and:

https://wiki.mozilla.org/Performance:Leak_Tools

There's also this guy saying to avoid large arrays in the context of closures, towards article bottom

http://ajax.sys-con.com/node/352585

这篇关于用于Firefox的Javascript内存分析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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