English 中文(简体)
As2 Benchmarking
原标题:

I ve been looking for a took or a method of benchmarking as2 code specifically individual functions. I ve looked at Grant Skinners Performance Test which is for as3 so it does me no good. Does anyone know of an as2 version or a good way to time functions?

Thanks in advance!

问题回答

hum,

did you try ASProf?

http://www.nochump.com/asprof/

not sure if it gives this kind of information. But it is a Flash MX Profiler, I used it a long time ago.

should work according to the features

What I do is that I add debug-calls from each function. In the debug-function I would then measure the time since the last call to the debug, adding this time as a string to the start of the string-to-trace like this:

[ - ] entering for loop [ 4ms ] exiting for loop

Then you spray and pray with traces, finding pieces of code that run slowly, which would be anything above 1ms/call.

Combine this with grouping/analyzing traces per frame, and you have suddenly a very powerful tool at your hands.





相关问题
What to look for in performance analyzer in VS 2008

What to look for in performance analyzer in VS 2008 I am using VS Team system and got the performance wizard and reports going. What benchmarks/process do I use? There is a lot of stuff in the ...

SQL Table Size And Query Performance

We have a number of items coming in from a web service; each item containing an unknown number of properties. We are storing them in a database with the following Schema. Items - ItemID - ...

How to speed up Visual Studio 2008? Add more resources?

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...

Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

热门标签