Finding JavaScript memory leaks with Chrome

后端 未结 8 1435
滥情空心
滥情空心 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.

    0 讨论(0)
  • 2020-11-28 01:00

    There is an introduction video from Google, which will be very helpful to find JavaScript memory leaks.

    https://www.youtube.com/watch?v=L3ugr9BJqIs

    0 讨论(0)
提交回复
热议问题