4.6. Monitoring and Profiling

.NET 4.0 introduces a number of enhancements that enable you to monitor, debug, and handle exceptions:

  • .NET 4.0 allows you to obtain CPU and memory usage per application domain, which is particularly useful for ASP.NET applications (see Chapter 10).

  • It is now possible to access ETW (Event Tracing for Windows) logs from .NET (no information on this is available at the time of writing, however).

  • A number of APIs have been (no information on this is available at the time of writing, however) exposed for profiling and debugging purposes.

  • No longer must profilers be attached at application startup; they can be added at any point. These profilers have no impact and can be detached at any time.

Get Introducing .NET 4.0: with Visual Studio 2010 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.