As3 swf bytecode injection

I am currently working on a tool that allows us to see which function takes a lot of time in a large as3 / Air project (more than 2000 classes) to identify bottlenecks and functions that need optimization.

One way to achieve this is to use the Flash Builder Profiler, but it is very slow and it crashes after 1 or 2 minutes. Another way is to manually record the file with the most important functions that take a lot of time. But this is a manual process, and I can not cover all the functions of the project.

So I'm looking for a way to input as3 bytecode directly in compiled swf. With this tool, I will enter a log after each function call, and so I can cover the entire function of the project.

There are several as3 libs ( AS3Commons ByteCode ), but it doesn't work fine with my project (I get a parsing error) and as3 is slower.

+3
source share
2 answers

Finally, I used a python script to add As3 to every action of the script files. My work is here: http://code.google.com/p/as3-performances-analyzer/

+4
source

I see four options:

  • -, Apparat Joa Ebert (, ), ABC -, API -. Scala, , .

  • , . ABC (ActionScript Bytecode) , , SWF. , -.

  • "" SWF ABC, mxmlc, open-source. , , . , , - Adobe OpenSource Flex SDK.

  • , , - SWF ( ), AS3Trace/AS3DynamicProfile mm.cfg, , . .

, , , "" AS3 .;)

+10

Source: https://habr.com/ru/post/1781626/


All Articles