Finding JavaScript memory leaks with Chrome

后端 未结 8 1570
滥情空心
滥情空心 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:51

    You could also look at the Timeline tab in developer tools. Record the usage of your app and keep an eye on the DOM Node and Event listener count.

    If the memory graph would indeed indicate a memory leak, then you can use the profiler to figure out what is leaking.

提交回复
热议问题