Đom' Đóm Nhỏ'
New member
How do I find a memory leak in my browser?
Answer
How to find JavaScript memory leaks using heap snapshot
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.