用于Firefox的Javascript内存分析器 [英] Javascript memory profiler for Firefox
问题描述
原因是同事在数组中使用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屋!