I&#39;ve attempted to figure out how this is implemented on Leopard.  It appears that get_cpu_times in mono/utils/mono-proclib.c relies on &quot;/proc/stat&quot;.  Which as far as I can tell does not exist on Snow Leopard.<div>
<br></div><div>The C# code is:</div><div><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1038.35">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Helvetica}
span.s1 {color: #1738f5}
span.s2 {color: #32a2ba}
span.s3 {color: #b52422}
</style>


<p class="p1"><font class="Apple-style-span" size="2">cpu = <span class="s1">new</span> <span class="s2">PerformanceCounter</span>(<span class="s3">&quot;Process&quot;</span>, <span class="s3">&quot;% Processor Time&quot;</span>, <span class="s2">Process</span>.GetCurrentProcess().ProcessName, <span class="s1">true</span>);</font></p>
<p class="p1"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1038.35">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Helvetica}
</style>


</p><p class="p1"><font class="Apple-style-span" size="2">cpu.NextValue()</font></p><p class="p1"><br></p><p class="p1"><meta charset="utf-8"><span class="Apple-style-span" style="font-family: arial; font-size: small; ">NextValue() is always 0.  But on Windows it does work as expected.</span></p>
<p class="p1"><span class="Apple-style-span" style="font-family: arial; font-size: small; "><br></span></p><p class="p1"><span class="Apple-style-span" style="font-family: arial; font-size: small; ">I may be misreading the code, I did not actually confirm this is the code path taken.  Even if the code path is different NextValue is still always 0.</span></p>
<p class="p1"><span class="Apple-style-span" style="font-family: arial; font-size: small; "><br></span></p><p class="p1"><span class="Apple-style-span" style="font-family: arial; font-size: small; ">Any help would be appreciated.</span></p>
<p class="p1"><span class="Apple-style-span" style="font-family: arial; font-size: small; ">Thanks,</span></p><p class="p1"><span class="Apple-style-span" style="font-family: arial; font-size: small; ">Duane</span></p><p>
</p></div>