Packagegs.util
Classpublic class Profiler

The Profiler class is a generic graph utility the displays memory, and frames per second statistics.

If you're using the DocumentController, you can enable the Profiler by setting the "embeddedProfiler" flashvar to true. Which enables the "Show Profiler" context menu item for the stage.

This was originally written by Shane McCartney from lostinactionscript.com



Public Properties
 PropertyDefined by
  averageFps : Number
[static][read-only] The current averate frames per second.
Profiler
  currentFps : Number
[static][read-only] The current frames per second.
Profiler
  currentMem : Number
[static][read-only] The current memory.
Profiler
  fpsList : Array
[static]
Profiler
  history : int
[static]
Profiler
  maxFps : Number
[static]
Profiler
  maxMem : Number
[static]
Profiler
  memList : Array
[static]
Profiler
  minFps : Number
[static]
Profiler
  minMem : Number
[static]
Profiler
Public Methods
 MethodDefined by
  
hide():void
[static]
Profiler
  
init(swf:Stage, context:InteractiveObject):void
[static] Initialize the profiler.
Profiler
  
show():void
[static]
Profiler
  
start():void
[static] Start graphing.
Profiler
  
stop():void
[static] Stop graphing.
Profiler
Property detail
averageFpsproperty
averageFps:Number  [read-only]

The current averate frames per second.

Implementation
    public static function get averageFps():Number
currentFpsproperty 
currentFps:Number  [read-only]

The current frames per second.

Implementation
    public static function get currentFps():Number
currentMemproperty 
currentMem:Number  [read-only]

The current memory.

Implementation
    public static function get currentMem():Number
fpsListproperty 
public static var fpsList:Array
historyproperty 
public static var history:int
maxFpsproperty 
public static var maxFps:Number
maxMemproperty 
public static var maxMem:Number
memListproperty 
public static var memList:Array
minFpsproperty 
public static var minFps:Number
minMemproperty 
public static var minMem:Number
Method detail
hide()method
public static function hide():void
init()method 
public static function init(swf:Stage, context:InteractiveObject):void

Initialize the profiler.

Parameters
swf:Stage — The swf stage.
 
context:InteractiveObject — The context in which to draw the graphs.
show()method 
public static function show():void
start()method 
public static function start():void

Start graphing.

stop()method 
public static function stop():void

Stop graphing.