wonderwhy-ER on DeviantArthttp://creativecommons.org/licenses/by/3.0/https://www.deviantart.com/wonderwhy-er/art/AdvancedFPS-Source-147982100wonderwhy-ER

Deviation Actions

wonderwhy-ER's avatar

AdvancedFPS Source

By
Published:
1.5K Views

Description

Here sharing a class that I use to test performance of things I write. It is pretty flexible and allows to count time code execution takes. You can use it to count different overlapping code segments in parallel or counting some code segments distributed trough code as one segment.

Download contains zip with FPS.as file with class itself and FPSExample.fla with few examples of usage.

Code itself is not documented and probably is little bit messy but what ever :)
Comments4
Join the community to add your comment. Already a deviant? Log In
roboprez's avatar
I didn't have CS4 handy to check out your .fla so i had to just muck around a bit. Also to get it to work with Flex I had to make all varibles public, put a return deceleration on the functions (all void exept getData) and pass the stage.frameRate as a function argument. Anyway after that it works GREAT!