Matthew
Matthew

Reputation: 11613

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?

Upvotes: 6

Views: 303

Answers (2)

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.

Upvotes: 3

Karl Laurentius Roos
Karl Laurentius Roos

Reputation: 4399

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

Upvotes: 2

Related Questions