views:

889

answers:

5

Hey. I'm looking to see the memory usage and processor load of an ActionScript 3 project. What applications/methods could I use for that purpose?

+1  A: 

for simple memory tracking, use flash.system::System.totalMemory ... for anything else, use the flash.sampler package ... won't help you monitor CPU usage, but you can find out a LOT of things ...

you could also use Flex Builder's internal profiler ...

back2dos
I'm not sure I can use flash.sampler, I have a pure Actionscript project.. I'll try an import and see if it works.
evilpenguin
+1  A: 

This blog, and the comments, are very helpful for understanding flash memory usage.

jedierikb
+1  A: 
HanClinto
+3  A: 
Coded Signal
+1  A: 

For memory profiling, the profiler that comes with Flex Builder is very useful. Give it a try if you can. It also helps for profiling performance, or the time it takes to execute methods, how many times are they called, etc. I've read many times that performance varies notably between debug and release swfs, and the profiler certainly requires a debuggable swf, but anyway I find it very useful to spot bottlenecks and places were optimization could actually pay off.

Juan Pablo Califano