How to detect memory leaks in Flash?

How do you know if a compiled SWF file has a memory leak?

Are there any tools, firebug settings, etc. to see if there is a problem? I cannot find much in the Flash debugging player besides file size and load time.

I have a large Flash application that I support and suspect is using too much memory, so I wanted to measure the amount of RAM used when it runs to find key areas for optimization.

Any help would be greatly appreciated.

+3
source share
3 answers

, , .

, :

var initial_memory:Number = Number(System.totalMemory/1024).toFixed(2));

(.. )

TimerEvent.TIMER Event.ENTER_FRAME :

var current_memory:Number = Number(System.totalMemory/1024).toFixed(2));

initial_memory, current_memory. , . initial_memory current_memory, . , FireBug .

. -, , . , -, , , , .

+4

Flex Builder. , , , , , . - , (5- addEventListener).

, Flash Player :

http://blogs.adobe.com/aharui/2007/03/garbage_collection_and_memory.html

+5

Profiler 360 | Flex '09... , , 08... , Profiler.

+2

Source: https://habr.com/ru/post/1732390/


All Articles