Kevin Gosse 2/12/2023

Reading .NET performance counters without the PerfCounter API

Read Original

This technical article details the hidden dangers of the standard .NET PerformanceCounter API, which can cause crashes by loading arbitrary DLLs. It explains the underlying Windows performance counter system and provides a method for reading .NET CLR performance data directly from the registry (HKEY_PERFORMANCE_DATA) for improved stability and control in production environments.

Reading .NET performance counters without the PerfCounter API

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser