Is there a program that will allow me to get detailed information about my script: specifically, I'd like to be able to track its memory footprint and see how many objects are in memory. Firebug has a profiler that seems to provide timing informatio开发者_运维百科n but I'm more interested in memory management.
Google Chrome does this out of the box, very similar to how firebug works
Google Chrome/chromium has a built-in profiler which can not only profile CPU usage, but also take and present heap (memory) snapshots.
I used to use a profiler called "Javascript Memory Validator" (http://www.softwareverify.com/javascript-memory.php).
This profiler was amazing. However, the last version of Firefox they supported was 3.6.6, so it looks like it's a dead product.
If you're desperate, you can install Firefox 3.6 and use this profiler.
You can check out this:
JavaScript Profiler 2.0
精彩评论