UPDATE: http://www.flashfuck.it/fps-monitor/
Here’s some (usefull i hope
) source..

I’ve made a little fps monitor for my projects (for both as3 and flex)… so, here’s some souce and some howtos about…
There are 2 classes, FPSMonitor is made for as3 (or flash) projects, the other one, FlexFPSMonitor is made expecially for use in Flex.
Usage AS3:
import it.flashfuck.debugger.FPSMonitor; //[...] addChild(new FPSMonitor()); |
Usage Flex:
// new xmlns in application tag xmlns:debugger="it.flashfuck.debugger.*" //then add the tag, remember to add it at the end of your app so it's appearing in front of everything |
quite simple hm? ![]()
The main difference between these classes’ results is dragging. Flex one is draggable over the application stage, the other one is not draggable (just edit the code if you want to bring it away among the screen
)….
Features
FPSMonitor (as the flex one) is monitoring
- OS, Player type, version, and “is debugger”
- FPS
- Memory usage (note: this parameter tells you the memory usage by ALL flash player instances you’re running, so if you’re running more than 1 player at once this value is altered!…even in 2 firefox tabs or a standalone and a browser player)
Graph:
FPSMonitor is displaying in a graph 2 values: FPS (white) and memory usage (black) (same note for this value
)
Everything is blended with BlendMode.INVERT so you can see the monitor in quite every condition.
I hope you enjoy.
Download here both classes FPSMonitor.as and FlexFPSMonitor.as
….just a note: feel free to use this code anywhere, if you’re improving functionalities, adding more features or anything else please just send me a smoke signal or a pidgeon with a message so i can update the source
Related
Tags: Source









May 27th, 2008 at 2:05 pm
Thanks! This is awesome!
May 27th, 2008 at 4:12 pm
made in italy is not only fashion
thx, i hope you enjoy
August 20th, 2008 at 5:16 am
Hi there!
Love this one – but I have a question regarding the numbers for the memory usage… What are they representing – Mb, Kb or?
Like this graph because it’s so easy to setup and it is very useful!!
All the best, Niklas
August 23rd, 2008 at 7:07 am
Thx! This is really nice.
August 30th, 2008 at 6:38 am
sorry niklas, i didn’t highlight memory usage is in megabytes
anyway i have to specify that memory usage is not relative to “that swf” but to “flash player” actual memory usage: System.totalMemory in fact shows only that data.
October 29th, 2008 at 9:10 pm
thanks for this! very useful indeed.
October 29th, 2008 at 9:19 pm
[...] Link. [...]
December 13th, 2008 at 12:53 pm
Grazie!
But I used this in Flex 3, and found that the component call should be do go with the capitalized files.
Forza ASurri