Reputation: 3447
I have seen the Profile Window in Flash builder, but it shows data only useful for memory profiling. How can we do CPU profiling for applications?
One of my UI operations is very CPU intensive and I need to profile to see which function calls are taking the most CPU cycles. Currently I am unable to find something like that.
Upvotes: 3
Views: 1256
Reputation: 65
Try using Monster Debugger. Its great for runtime debugging and cpu profiling. http://demonsterdebugger.com/ I use it all the time for swfs and air apps.
Upvotes: 1
Reputation: 12847
From what I know, that's currently impossible to know because of the abstraction between actionscript and the Flash Player. Best bet would be to have a test run the function a few hundred thousand time and look at the OS' CPU monitor to check how much CPU it uses.
Frankly, I never really do this because I prefer to go over my code and find bottlenecks and improve them. If anything, I do unit tested and check the time it takes, then try to optimize it.
Upvotes: 0
Reputation: 40669
The random-pausing method should find your problem. All it requires is that you have a debugger that you can pause and show stack traces. Flex appears to have such a debugger, fdb.
Upvotes: 0