Flash / Actionscript CPU profiler

2019-01-22 08:07发布

Have you found such a tool and used it successfully?

9条回答
Animai°情兽
2楼-- · 2019-01-22 08:51

This one is my personal favorite. Note that it's built on java and open source. http://github.com/bengarney/PBLabsProfiler

It uses undocumented features of flash/flex compiler. The same ones Flash Builder built-in profiler uses. And yes! I have successfully used it to optimize some of my flash code.

查看更多
看我几分像从前
3楼-- · 2019-01-22 08:54

I wrote a flash profiler based on flasm a while ago (http://snow.prohosting.com/bensch/flasp.html) You need to use flasm to insert the profiling asm and then run the program.

Another (maybe) better way is to use David Chang's profiling code which doesn't require flasm at all. www.nochump.com/asprof/

cheers

查看更多
放我归山
4楼-- · 2019-01-22 08:57

There is a FlashPreloaderProfiler: http://jpauclair.net/flashpreloadprofiler

It's written in actionscript, doesn't need a java-application running in the background and have some more features like Memory Profiler.

But I prefer PBLabsProfiler too :)

查看更多
在下西门庆
5楼-- · 2019-01-22 08:59

It's important to note that the Flash Player implementation is different on each platform and to an extent each browser, so expect notable speed differences. So if you're developing a resource intensive application you should be using profiling tools specific to each OS you're targeting, like for example Instruments on OS X and of course test the performance in each browser.

查看更多
劫难
6楼-- · 2019-01-22 09:00

I've used the profiler that comes with Flex Builder 3 with moderate success. I find out especially useful in finding memory leaks and or GC issues.

It was much less useful for me in the area of time-in-method performance due to the asynchronous nature of the application in question and the amount of time given to [onEnterFrame] and other internal methods, though I was still able to make some optimisations based on the output.

查看更多
做自己的国王
7楼-- · 2019-01-22 09:02

Adobe have recently released a new profiling tool for Flash called Adobe Scout:

http://gaming.adobe.com/technologies/scout/

It's a massive improvement on the old Flash Builder profiler - it gives you a detailed breakdown of CPU time, both for ActionScript execution, and internal player functions like rendering and networking.

It's free for a trial period - you just need to register for a free Creative Cloud account. After that, there will continue to be a free basic version, with the full version available as part of a paid Creative Cloud account.

查看更多
登录 后发表回答