Finding JavaScript memory leaks with Chrome

后端 未结 8 1563
滥情空心
滥情空心 2020-11-28 00:07

I\'ve created a very simple test case that creates a Backbone view, attaches a handler to an event, and instantiates a user-defined class. I believe that by clicking the \"R

8条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 00:59

    You also might want to read :

    http://addyosmani.com/blog/taming-the-unicorn-easing-javascript-memory-profiling-in-devtools/

    It explains the use of the chrome developer tools and gives some step-by-step advices on how to confirm and locate a memory leak using heap snapshot comparison and the different hep snapshot views available.

提交回复
热议问题