| Package | gs.util |
| Class | public class Profiler |
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
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| averageFps | property |
averageFps:Number [read-only]The current averate frames per second.
Implementation public static function get averageFps():Number
| currentFps | property |
currentFps:Number [read-only]The current frames per second.
Implementation public static function get currentFps():Number
| currentMem | property |
currentMem:Number [read-only]The current memory.
Implementation public static function get currentMem():Number
| fpsList | property |
public static var fpsList:Array
| history | property |
public static var history:int
| maxFps | property |
public static var maxFps:Number
| maxMem | property |
public static var maxMem:Number
| memList | property |
public static var memList:Array
| minFps | property |
public static var minFps:Number
| minMem | property |
public static var minMem:Number
| hide | () | method |
public static function hide():void
| init | () | method |
public static function init(swf:Stage, context:InteractiveObject):voidInitialize the profiler.
Parametersswf: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():voidStart graphing.
| stop | () | method |
public static function stop():voidStop graphing.