initialize="initTimer()">
import mx.collections.ArrayCollection;
import flash.utils.Timer;
import flash.events.TimerEvent;
[Bindable]
public var memoryRecording:ArrayCollection = new ArrayCollection();
public function initTimer():void {
var myTimer:Timer = new Timer(1000, 0);
myTimer.addEventListener("timer", timerHandler);
myTimer.start();
}
public function timerHandler(event:TimerEvent):void {
memoryRecording.addItem({totalMemory:flash.system.System.totalMemory,timePoint:getTimer()});
}
displayName="Memory Usage" />