次の方法で共有


JavaScript Memory Leak Detector for Internet Explorer

Paolo Severini, a developer from Microsoft's GPDE team in Europe has created a debugging tool to detect memory leaks in JavaScript code and is downloadable here. It can be installed as an Internet Explorer band and it is expressly designed to find memory leaks in JavaScript code that runs in Internet Explorer.

Like any IE Band, the JavaScript Memory Leak Detector is a COM in-process DLL loaded in the Internet Explorer process. The fact of living inside the IE process allows it to easily intercept some of the API calls made by the IE code. In this case, we are interested in intercepting every call that creates a Jscript engine.

The Jscript engine is a COM object, and it is instantiated by Trident (mshtml.dll) with a call to CoCreateInstance() . Therefore, the first operation made by the tool will be to intercept the calls to CoCreateInstance made by the mshtml module.

Please check out the blog about this very useful tool, then download the thing and give a try!

Note:  There are no details available on how this tool interacts with Internet Explorer 8.0, so please keep this in mind if you are running the beta.

Regards,

The IE Support team

Comments

  • Anonymous
    August 11, 2009
    How does one use this tool?  Does it automatically get invoked when running IE? I presume the link to the blog post in the article might have addressed these issues.  However that link is now broken.

  • Anonymous
    February 09, 2010
    However that link is now broken.

  • Anonymous
    March 05, 2010
    Is there any exposed API to get the information of DOM objects in memory using this tool?

  • Anonymous
    April 19, 2010
    The comment has been removed

  • Anonymous
    July 09, 2010
    The comment has been removed

  • Anonymous
    July 09, 2010
    By the way, your footer is broken in IE. Nice. Oh and this page takes forever to load. Thanks a pantload.

  • Anonymous
    July 28, 2010
    The new link is blogs.msdn.com/.../javascript-memory-leak-detector-v2.aspx

  • Anonymous
    January 24, 2011
    andy.yoyopan.net/.../IEJSLeaksDetector2.0.1.1.zip

  • Anonymous
    January 24, 2011
    JavaScript Memory Leak Detector (v2) Original download link in (blogs.msdn.com/.../javascript-memory-leak-detector-v2.aspx) doesn't seem to work. It's available here: andy.yoyopan.net/.../IEJSLeaksDetector2.0.1.1.zip

  • Anonymous
    July 14, 2011
    You have to go in "Tools" => "Explorer Bars" => "js memory leak detector"  as for the IE developer toolbar. This will enable the plugin in the footer.

  • Anonymous
    January 19, 2015
    Spartan will be better at leaks? : )