C# Performance Counter Help, Nvidia GPU
<p>So I've been experimenting with the performance counter class in C# and have had great success probing the CPU counters and almost everything I can find in the windows performance monitor. HOWEVER, I cannot gain access to the "NVIDIA GPU" category...</p>

<p>So for example, the following line of code is how it usually works.</p>

<pre><code>PerformanceCounter cpuCounter = new PerformanceCounter("Processor", "% Processor Time", "_Total");
</code></pre>

<p>That code works fine, but the GPU category that appeared in the performance monitor, just as the processor category did, is not accessible by C#. The following line of code attempts to access it.</p>

<pre><code>PerformanceCounter gpuCounter = new PerformanceCounter("NVIDIA GPU", "% GPU Usage","#0 Quadro K1100M(id=1, NVAPI ID=256)");
</code></pre>

<p>Instead it throws a "Category does not exist" exception...</p>

<p>Here is what it looks like from within the Performance Monitor</p>

<p><img src="https://i.stack.imgur.com/rvY8Q.png" alt="enter image description here"></p>

<p>The category clearly exists, so my question is... how do I access this counter?</p>