How to find out how much memory is allocated to a javascript object?

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

I think the answer is probably “you cannot”, but is there a way to find out how much memory is allocated to each object in the DOM / javascript environment? What tools exist and do they differ from browser to browser?

If the answer really is “can't,” can someone explain why not?

+7
source share
1 answer

Using Chrome, you can use your tools for developers (CTRL + SHIFT + I or F12). Go to the Profiles tab and click the eyeball icon in the status bar.

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

+4
source

All Articles