Overview
Windows 7 contains the instrumentation platform provided in Windows Vista and lower versions of Windows to expose diagnostic information for the application. There are many mechanisms for exposing detection and control information, including:
Windows Event Tracking (ETW)
Windows performance Counters
Windows Management Instrumentation (WMI)
• Event Log
Analyzing application performance and using instrumentation information is a critical task for real-world troubleshooting applications. The Windows detection mechanism and Windows performance Toolkit provide the tools necessary to streamline the diagnostics and analysis experience.
Goal
In this hands-on lab, you will learn how to:
• Use Windows performance counters to expose application detection information
• Analyze application performance using Windows performance Toolkit
System Requirements
To complete this experiment, you must have the following software:
Microsoft Visual Studio 2008
windows 7
Windows 7 SDK
Microsoft Windows Performance Toolkit
Note: The techniques used in this experiment do not represent the recommended use of this development practice. In reality, you should use a standalone elevation process (or installer) to register performance counters for your application. In addition, you can consider using multiple instance performance counters to allow multiple instances to coexist on a single machine (i.e. Terminal Services, multiple sessions). Using other methods will not benefit the user experience in a multiuser scenario, such as Fast User Switching or Terminal Services.