Is there any way to detect memory leaks in Flash ActionScript-3 project? what are the easier ways to achieve this in existing project ?
First is to establish if you actually have a memory leak. For that, I would recommend using a performance stat tool that gives you real-time feedback on your memory usage.
One of the best ones that I've used is Mr. Doob's Stats tool:
(source: mrdoob.com)
Just add it to the stage with
addChild( new Stats() );
And you'll be able to watch your memory usage in real-time. Perform different actions to see what is causing the memory leak (is it just when you click on these buttons, or every frame, etc etc).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With