Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

How To: Monitor Performance at Run Time

Describes performance monitoring with the XNA Framework Remote Performance Monitor for Xbox 360.

The XNA Framework Remote Performance Monitor for Xbox 360 is a performance analysis tool included with the XNA Framework. This tool provides a user interface that lets you view performance data at application run time. When you start your application from Remote Performance Monitor, the tool will read statistical data for the XNA Framework performance counters directly from the common language runtime (CLR).

You can also view XNA Framework performance counters using the Windows desktop tool, PerfMon.exe. Using Remote Performance Monitor in combination with PerfMon.exe gives you a live, graphical view of the performance counter data generated by the CLR.

With the Remote Performance Monitor you can:

  • View performance counter data while you run an application.

  • View performance counter data in a graphical format in PerfMon.exe while you run an application.

  • View garbage collector heap dumps. For more information, see How To: Generate a Garbage Collector Heap Dump.

  • View .stat files.

For a list of the available performance counters, see Performance Counters in the XNA Framework.

Using XNA Framework Remote Performance Monitor for Xbox 360

Bb198208.note(en-US,XNAGameStudio.30).gifNote
Before you use Remote Performance Monitor, you must configure your Xbox 360 console to communicate with XNA Game Studio on your desktop computer. See Configuring XNA Game Studio and Your Xbox 360 Console.

To run an application from Remote Performance Monitor

  1. On the Xbox 360 console, start XNA Game Studio Connect, and then select Launch.

  2. On your desktop computer, start All Programs | Microsoft XNA Game Studio 3.0 | Tools | XNA Framework Remote Performance Monitor for Xbox 360.

  3. Click the Launch Application icon, which is the green arrow on the toolbar.

  4. In the Device list, click the Xbox device to which you are connected.

  5. In the Application text box, enter the game's name.

    The name is set in Project | Properties | Application | Assembly Information | Title. This is the name of the game displayed in XNA Game Studio Connect.

  6. In the Arguments text box, enter any command-line arguments for the application.

  7. Verify that the application is not currently running on the device, and that the XNA Game Studio Connect screen is visible.

  8. Click OK.

    Remote Performance Monitor starts the application and displays performance data.

To use PerfMon.exe with Remote Performance Monitor

  1. On your desktop computer, start All Programs | Microsoft XNA Game Studio 3.0 | Tools | XNA Framework Remote Performance Monitor for Xbox 360.

    Bb198208.caution(en-US,XNAGameStudio.30).gifCaution
    If you are using this tool under Windows Vista, you must run the tool with administrator privileges.
  2. From the Options menu, click Publish to Perfmon.

  3. Start an application from Remote Performance Monitor using the previous procedure.

  4. Start PerfMon.exe.

    This file is located in \Windows\System32.

  5. In the left pane of PerfMon.exe, click Performance Monitor if it is not already selected.

  6. Right-click in the right pane of PerfMon.exe, and then click Add Counters.

  7. From the Performance Object list box, select a counter group name (or expand the group and select a single counter) that you want to graph in PerfMon.exe.

    The group names correspond to the categories that appear when you view statistical data in Remote Performance Monitor. For example, the garbage collection group is called "Xbox 360 GC" in PerfMon.exe.

  8. Click Add.

To save performance data

  1. Start an application from Remote Performance Monitor.

  2. Start PerfMon.exe, and then graph performance data.

  3. From the Performance Monitor graph window, right-click and select Save Settings As... .

  4. Type a name for the file, and specify the folder in which to save the file.

    The file will be saved with a .htm extension. Use Internet Explorer or Remote Performance Monitor to open and view the generated .htm file.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.