Packagecom.joebillman.utils
Classpublic class FpsProfiler
InheritanceFpsProfiler Inheritance flash.display.Sprite

FpsProfiler: Profiles frames per second (FPS) and memory.

View the examples



Public Methods
 MethodDefined By
  
profile(target:DisplayObjectContainer, profilerX:Number = 3, profilerY:Number = 3):FpsProfiler
[static]
FpsProfiler
  
FpsProfiler
  
FpsProfiler
Method Detail
profile()method
public static function profile(target:DisplayObjectContainer, profilerX:Number = 3, profilerY:Number = 3):FpsProfiler

Parameters

target:DisplayObjectContainer
 
profilerX:Number (default = 3)
 
profilerY:Number (default = 3)

Returns
FpsProfiler
startProfiling()method 
public function startProfiling():void

stopProfiling()method 
public function stopProfiling():void

Examples
The following example illustrates basic usage.

Note: If you need more control over the profiler you will need to store it in a variable and access it's public methods from that instance. Details

     FpsProfiler.profile(this.stage);