Specifications

CHAPTER 4
62
</mx:FormItem>
<mx:FormItem label="totalMemory:">
<mx:Label text="{totmem} bytes"/>
</mx:FormItem>
<mx:FormItem label="Max. Memory:">
<mx:Label text="{maxmem} bytes"/>
</mx:FormItem>
</mx:Form>
</mx:Application>
Configuring the client environment
When testing applications for performance, it is important to configure the client properly.
Choosing the version of Flash Player
When you test your applications for performance, use the standard version of Adobe® Flash® Player or AIR rather
than the debugger version of Flash Player or ADL, if possible. The debugger version of Player provides support
for the
trace() method and the Logging API. Using logging or the trace() method can significantly slow player
performance, because the player must write log entries to disk while running the application.
If you do use the debugger version of Flash Player, you can disable logging and the trace() method by setting
the
TraceOutputFileEnable property to 0 in your mm.cfg file. You can keep trace() logging working, but
disable the Logging API that you might be using in your application, by setting the logging level of the TraceTarget
logging target to
NONE, as the following example shows:
myLogger.log(LogEventLevel.NONE, s);
For performance testing, consider writing run-time test results to text components in the application rather than
calling the
trace() method so that you can use the standard version of Flash Player and not the debugger version
of Flash Player.
For more information about configuring trace() method output and logging, see “Logging” on page 227.
Disabling SpeedStep
If you are running performance tests on a Windows laptop computer, disable Intel SpeedStep functionality.
SpeedStep toggles the speed of the CPU to maximize battery life. SpeedStep can toggle the CPU at unpredictable
times, which makes the results of a performance test less accurate than they would otherwise be.
1 Select Start > Settings > Control Panel.
2 Double-click the Power Settings icon.
The Power Options Properties dialog box displays.
3 Select the Power Schemes tab.