7

Possible Duplicate:
JavaScript object size
How to measure memory usage and efficiency?

I guess the answer is probably "You can't", but is there any way to see how much memory is allocated to each object in the DOM/javascript environment? What tools are there and does it vary from browser to browser?

If the answer is indeed "You can't" can anyone explain why not?

Community
  • 1
  • 1
wheresrhys
  • 22,558
  • 19
  • 94
  • 162

1 Answers1

4

Using Chrome, you can use their developer tools (CTRL + SHIFT + I or F12). Click on the Profiles tab and press the eyeball icon in the status bar.

My versions of Safari and IE8 also have profiling tools, but for CPU only, not memory usage.

Lee Kowalkowski
  • 11,591
  • 3
  • 40
  • 46