Profiling Applications

Profiling is nothing more than the analysis of performance data collected from an application while it is running. Profiling is a useful technique for pinpointing the slowest performing areas of code so that they can be targeted for code improvements. Microsoft has a tool designed to view and track performance data: the Performance Monitor MMC snap-in. This can be launched from a command prompt by just typing “perfmon.” The Performance Monitor application feeds off objects called performance counters. These are individual, instrumented pieces of the core operating system that expose a numerical value representing some dimension of performance.

Because the .NET Framework ships with a comprehensive set of performance counters, ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library 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.