Packagecom.addicted2flash.util
Classpublic class PerformanceObservable
InheritancePerformanceObservable Inheritance MicroObservable
ImplementsIPerformanceObservable

This class represents a utility for observing frames per second and the total amount of memory currently in use by Flash Player. NOTE: value does not have to be setted in this MicroObservable-implementation. Observers will be notified every second.



Public Properties
 PropertyDefined by
  bytes : int
[read-only] return amount of memory (in bytes) currently in use by Flash Player.
PerformanceObservable
  fps : int
[read-only] return frames per second.
PerformanceObservable
 InheritedisAvailable : Boolean
Returns true if the value is available.
MicroObservable
  kiloBytes : int
[read-only] return amount of memory (in kilo bytes) currently in use by Flash Player.
PerformanceObservable
  megaBytes : Number
[read-only] return amount of memory (in mega bytes) currently in use by Flash Player.
PerformanceObservable
 InheritedmicroObserverAmount : int
Returns the number of observers of this IMicroObservable.
MicroObservable
 Inheritedvalue : *
Returns the value of this IMicroObserver.
MicroObservable
Protected Properties
 PropertyDefined by
 Inherited_hasChanged : Boolean
MicroObservable
 Inherited_observers : ISet
MicroObservable
 Inherited_ref : IMicroObservable
MicroObservable
 Inherited_value : *
MicroObservable
Public Methods
 MethodDefined by
  
Create a new PerformanceObservable.
PerformanceObservable
 Inherited
Adds an IMicroObserver to the set of observers for this object, provided that it is not the same as some observer already in the set
MicroObservable
  
dispose():void
free memory for garbage collection.
PerformanceObservable
 Inherited
Deletes an IMicroObserver from the set of observers of this object.
MicroObservable
 Inherited
Clears the observer list so that this object no longer has any observers.
MicroObservable
 Inherited
toString():String
String representation of MicroObservable.
MicroObservable
Protected Methods
 MethodDefined by
 Inherited
Each registered IMicroObserver will be notified.
MicroObservable
Property detail
bytesproperty
bytes:int  [read-only]

return amount of memory (in bytes) currently in use by Flash Player.

Implementation
    public function get bytes():int
fpsproperty 
fps:int  [read-only]

return frames per second.

Implementation
    public function get fps():int
kiloBytesproperty 
kiloBytes:int  [read-only]

return amount of memory (in kilo bytes) currently in use by Flash Player.

Implementation
    public function get kiloBytes():int
megaBytesproperty 
megaBytes:Number  [read-only]

return amount of memory (in mega bytes) currently in use by Flash Player.

Implementation
    public function get megaBytes():Number
Constructor detail
PerformanceObservable()constructor
public function PerformanceObservable()

Create a new PerformanceObservable.

Method detail
dispose()method
public override function dispose():void

free memory for garbage collection.