How do I find a memory leak in my browser?

How do I find a memory leak in my browser?
Answer
How to find JavaScript memory leaks using heap snapshot
  • Open js-memory-leak.html in Chrome.
  • Open developer tools and select Profiles tab.
  • Select Take Heap Snapshot.
  • Take a base snapshot.
  • Click Create App five times.
  • Take another snapshot.
  • Type in App in the Class Filter.
  • Notice There are 5 App objects, when there should be just one.
 

Tìm kiếm

Back
Top