Chapter 32. Performance Monitoring

In This Chapter

  • Accessing Built-in Performance Counters

  • Implementing Timers

  • Building a Customized Performance Counter

  • Analyzing Performance with Sampling

It's agreed that a program must run correctly and produce accurate results, but in many systems this isn't enough. Enterprise-class applications are of such mass that they must also be scalable. Verifying the scalability of an application traditionally requires specialized tools and bolted-on functionality to support monitoring. Now there's help, using the performance counter capability of the System.Diagnostics namespace.

Performance counters present an object framework for supporting application monitoring. The framework hooks into the operating system performance ...

Get C# Unleashed 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.