I have a case where I can write a function a few different ways and since Flash Player doesn't provide a microtime only getTimer() I'm trying to find a way to get the number of operations that are occurring in each different method.
For example, I have 3 different ways to get the results I want for (var i:int;i<array.length;i++) {} for (var prop in object) {} for each (value in object) {} each gets the result I'm looking for. But what I want to know is if there is a way to know how many operations are being run on the CPU from a specific statement, a specifc block of code or a specific function. I know about the Flash Builder profiler and Scout but I see only sample time which I'm not looking for just operation counts. I might be running this on a microcontroller that has limited CPU. So instead of 1 teraflop I might have 1000 operations. I guess that also begs the question are all operations equal at the CPU level?