#Debugging Memory Leaks on browser - Force Garbage Collection on #Chromium #GC

Oscar Brito

Unfortunately I could not make this work in Chrome and Chrome Canary but it's working on

To enable window.gc() on Chromium browser console you just need to start chromium like this:

chrome.exe" --js-flags="--expose-gc" --enable-memory-info

Those flags enable the following console API, very usefull to debug memory leaks:

//print memory information

// force garbage collection

Visit www.divhide.com for more informations, contacts and news about Web Development.
See other blog posts at blog.divhide.com.

Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.

Feel free to contact divhide.