Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tools to find memory use in javascript?

In the Chrome task manager I'm noticing that my app is using around 75,000k memory, which seems a little high. Is there a tool which will show the objects that are in memory, so that I can identify where I am misusing objects, or possibly even leaking memory?

like image 444
Matthew Avatar asked May 23 '11 19:05

Matthew


2 Answers

In the Chrome DOM Inspector, you can click Profiles -> Snapshot. It gives you an idea of the memory map of your page, what uses how much and etc, including reference count and object size.

like image 200
Please treat your mods well. Avatar answered Oct 27 '22 18:10

Please treat your mods well.


This has been asked before: Javascript memory profiler for Firefox

Take a look at Mozilla's performance tools: http://www-archive.mozilla.org/performance/tools.html

like image 43
Karl Laurentius Roos Avatar answered Oct 27 '22 18:10

Karl Laurentius Roos