使用萤火虫在JavaScript中寻找内存泄漏? [英] Finding memory leaks in JavaScript using firebug?

查看:124
本文介绍了使用萤火虫在JavaScript中寻找内存泄漏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有Firefox的附加组件可以用来查找部分JavaScript导致的内存泄露?

解决方案

我对firefox没有任何帮助,但Chrome浏览器中的webkit inspector内置了一个分析器,对于这种情况非常有用。

还显示了所有的浏览器事件,如重绘,所以你可以设计你的代码对浏览器的影响最小。


Are there any add-ons for Firefox that I can use to find out with part of the JavaScript causes memory leaks?

解决方案

I've got nothing for firefox, but the webkit inspector in Chrome has a profiler built in that is great for that kind of thing.

As an added bonus it also shows you all browser events such as repaints, so you can engineer your code to have the least impact on the browser.

这篇关于使用萤火虫在JavaScript中寻找内存泄漏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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