ResourceMonitor class {as3.0}
as3, class, monitor, resource, util
Feb 19code6 Comments
ResourceMonitor is an as3 class, which monitors your fp resource usage (ram, cpu, frameRate).
Benefits: one *.as file, no external files needed – just import and create instace.
UPDATE: Check out the new v2 ResourceMonitorUtil class
Sample:
import com.chargedweb.utils.ResourceMonitor;
var rm:ResourceMonitor = new ResourceMonitor(true, true, 50);
addChild(rm);
rm.showFpsAVG = true;
rm.showGrid = true;
rm.graphStyle = {width:200, height:70, gridColor:0xFFFFFF, bgColor:0x000000, lineColor:0xFFCC00, lineSize:2};
rm.monitor();






Mar 24, 2010 @ 11:02:07
Thanks!
Mar 25, 2010 @ 17:08:24
u r welcome ^_^
Apr 06, 2010 @ 22:01:33
Wow. I’ve been looking for something like this for a good little while. Had it up and running in no time. Very nice. Thanks!
Apr 07, 2010 @ 02:33:19
You are welcome ^_^
May 06, 2010 @ 06:06:56
nice.
I’d just add a flag to show textfield’s background (to read also on dark backgrounds).
May 06, 2010 @ 08:47:15
Yeap, nice suggestion, even more so i was thinking to rewrite that class