Search code examples
actionscript-3optimizationcpuutilization

CPU usage in AS3


I have a large project with lots of classes. It takes 40% CPU when it is running. What is the best way to find out what operations and functions are responsible for the load? I am using Flash Builder 4.5 AS3 Project. Built-in profiler doesn't help me much. Thanks


Solution

  • You can try SWFWire Debugger. Check the box that says Show method entry. If you also check Show method exit, it will tell you how long each function took to execute. The object graph might also help if you are creating and destroying objects often.