Profiling and Debugging Services

Used in conjunction with stress-testing data, the performance data gathered via profiling can prove to be invaluable in determining where an application needs performance improvement. You can gather performance data in two ways. One is to use the Performance Monitor counters discussed briefly in the next section. The other, and the one I will spend the most time discussing, is to use the .NET Performance Counter API.

Performance Monitor

To use the Windows 2000 Performance Monitor, choose Start, Administrative Tools and then click the Performance icon, or simply type perfmon in the Run dialog or at a command prompt.

To select specific counters to monitor, simply click the Add button on the toolbar. Clicking this ...

Get Building e-Commerce Sites with the .NET Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.