title: How do I capture .NET CLR memory performance counters for 64-bit programs?
body: <p>I'm trying to add <code>\.NET CLR Jit(*)\% Time in Jit</code> and other similar counters to be gathered by  Windows Azure Diagnostics in my Azure web role. I added them to the list using</p>
  
  <pre><code>DiagnosticMonitorConfiguration.PerformanceCounters.DataSources.Add()
  </code></pre>
  
  <p>but they are not being gathered (other counters such as CPU consumption are meanwhile being gathered). I noticed that if I run <code>typeperf.exe</code> from <code>System32</code> folder those counters are not listed but if I instead run <code>typeperf.exe</code> from <code>SysWow64</code> folder they are listed. So I guess they are somehow only gathered for 32-bit programs and since my code runs in 64-bit processes they are not gathered for my code.</p>
  
  <p>What am I doing wrong? How do I have those counters gathered?</p>