Implementing undo feature: how to measure memory consumption of JavaScript array?
Chrome have a great tool for that. It's based on RAIL model and allows you to quickly detect leaks and even bloats. Just go to chrome's Task Manager (shift + esc) and enable Javascript memory
. This tool saved my life, good luck!