title: How to get app "bytes in all heaps" performance counter from code, in run time?
body: <p>I am trying to get specific app, "bytes in all heaps" performance counter,in run time.
  The counter category is ".NET CLR Memory"
  The Instance of the app presented in the performance counter window (see attachment).
  But when a I am Trying to get the value from c# code with the Object PerformanceCounter, I get an error: "Instance  does not exist in the specified Category".</p>
  
  <p>my code:</p>
  
  <pre><code>PerformanceCounter performaceCounter = new PerformanceCounter(".NET CLR Memory"
      , "# Bytes in all Heaps"
      , instanceName: "my app instance name"
  );
  </code></pre>