Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript memory monitor? [duplicate]

Possible Duplicate:
Javascript memory profiler

I like to know what variables take how much memory in Javascript. Is it even possible to do it?

like image 259
Moon Avatar asked Feb 20 '11 01:02

Moon


2 Answers

What you are looking for isn't called "memory monitor". It's called "profiler".

Javascript memory profiler for Firefox e.g. has info for Javascript profilers for running Javascript in Firefox. Google has lots of profilers for Javascript in various environments: Just search for "profiler javascript"

like image 91
Foxfire Avatar answered Oct 28 '22 13:10

Foxfire


The webkit inspector in Chrome has a profiler built in that is great for that kind of thing.

As an added bonus it also shows you all browser events such as repaints, so you can engineer your code to have the least impact on the browser.

See this question and answer

like image 33
xzyfer Avatar answered Oct 28 '22 11:10

xzyfer