Page 1 of 1

Memory Leak or similar in my isogenic game.

PostPosted: Tue Mar 24, 2015 10:33 pm
by darian311
Regarding Village Makeover: I just opened the game in an incognito tab to make sure extensions were not interfering. CPU usage is still hitting 42% and memory consumption at 335MB. Do you know any tools for isolating javascript that is causing memory leaks?



https://github.com/darian311/VillageMakeover/issues/16

Re: Memory Leak or similar in my isogenic game.

PostPosted: Thu Mar 26, 2015 10:57 am
by robaldred
The Chrome dev tools have very powerful memory & cpu profiling tools built in:

https://developer.chrome.com/devtools/d ... -profiling
https://developer.chrome.com/devtools/d ... -profiling

https://developer.chrome.com/devtools/d ... -profiling

Are you sure you're seeing a memory leak? Does it memory increase steadily & consistently?
Always make sure you remove references to objects when they no longer needed otherwise garbage collection will not clean things up.