Package | com.gskinner.performance |
Class | public class RenderTest |
Inheritance | RenderTest ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
bounds : Rectangle The area of the display object to draw.
| RenderTest | ||
![]() | description : String Optional description for this test.
| AbstractTest | |
![]() | deviation : Number = 0
Provides a rough indication of how much the results of different iterations varied from the norm as a fraction of the average time.
| AbstractTest | |
displayObject : DisplayObject The DisplayObject to draw.
| RenderTest | ||
![]() | error : Error
If an error occurs in any iteration of the test, the error property will contain the resulting Error object.
| AbstractTest | |
![]() | iterations : uint
The number of iterations to run with this test.
| AbstractTest | |
![]() | loops : uint
Specifies how many times to repeat the test within a single iteration.
| AbstractTest | |
![]() | max : int = -1 The highest time for all iterations, or -1 if the test has not yet run successfully.
| AbstractTest | |
![]() | min : int = -1 The lowest time for all iterations, or -1 if the test has not yet run successfully.
| AbstractTest | |
![]() | name : String
Optional name for this test.
| AbstractTest | |
![]() | time : Number = -1 The average time for all iterations, or -1 if the test has not yet run successfully.
| AbstractTest | |
![]() | timeLog : Array
An array of int values indicating the times for each iteration that was run.
| AbstractTest |
Method | Defined by | ||
---|---|---|---|
RenderTest(displayObject:DisplayObject, bounds:Rectangle = null, name:String = null, iterations:uint = 0, loops:uint = 1, description:String = null)
Creates a new instance of RenderTest.
| RenderTest | ||
![]() |
complete():void
PerformanceTest calls
complete() when all of the iterations of the test have been run. | AbstractTest | |
run():int
PerformanceTest calls
run() on tests to run and time them. | RenderTest | ||
![]() |
toString():String
Returns a string representation of this Test.
| AbstractTest | |
![]() |
toXML():XML
Returns XML containing all of the information about this test.
| AbstractTest |
bounds | property |
public var bounds:Rectangle
The area of the display object to draw. If null then displayObject.getBounds() will be used.
displayObject | property |
public var displayObject:DisplayObject
The DisplayObject to draw.
RenderTest | () | constructor |
public function RenderTest(displayObject:DisplayObject, bounds:Rectangle = null, name:String = null, iterations:uint = 0, loops:uint = 1, description:String = null)
Creates a new instance of RenderTest. See properties for parameter information.
ParametersdisplayObject:DisplayObject |
|
bounds:Rectangle (default = null )
|
|
name:String (default = null )
|
|
iterations:uint (default = 0 )
|
|
loops:uint (default = 1 )
|
|
description:String (default = null )
|
run | () | method |
public override function run():int
PerformanceTest calls run()
on tests to run and time them. The run() method returns the
time for that iteration, or -1 if an error occurred. You would not generally call the run()
method directly.
int |