Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting Memory Leaks in ActionScript-3 Project

Is there any way to detect memory leaks in Flash ActionScript-3 project? what are the easier ways to achieve this in existing project ?

like image 620
DexTer Avatar asked Aug 10 '09 14:08

DexTer


1 Answers

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:

Screenshot
(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).

like image 57
HanClinto Avatar answered Sep 30 '22 16:09

HanClinto