public function ptest(method:Function, params:Array = null, name:String = null, iterations:uint = 1, loops:uint = 1):AbstractTest
Shortcut method for quickly timing a function. You can specify the function to test, parameters to use,
a label to associate with the test (to identify it in trace output), the number of iterations to run
(separately timed runs of the test), and loops (number of times to execute the function in each iteration).
You must import com.gskinner.performance.ptest
to use it.
For example:
trace(ptest(myFunction));
Parameters
| method:Function |
|
| params:Array (default = null )
|
|
| name:String (default = null )
|
|
| iterations:uint (default = 1 )
|
|
| loops:uint (default = 1 )
|
Returns