ResourceMonitor class {as3.0}



6 Comments

Share




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.

Download source files

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();

6 Comments (+add yours?)

  1. Smival
    Mar 24, 2010 @ 11:02:07

    Thanks!

  2. jloa
    Mar 25, 2010 @ 17:08:24

    u r welcome ^_^

  3. wellst
    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!

  4. jloa
    Apr 07, 2010 @ 02:33:19

    You are welcome ^_^

  5. Beppe
    May 06, 2010 @ 06:06:56

    nice.
    I’d just add a flag to show textfield’s background (to read also on dark backgrounds).

  6. jloa
    May 06, 2010 @ 08:47:15

    Yeap, nice suggestion, even more so i was thinking to rewrite that class

Leave a Reply

Spam protection by WP Captcha-Free