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
2009-07-24 17:13:12
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
2009-07-27 09:12:19
+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
2009-07-31 19:59:28