title: c# : runtime code profiling - any existing libraries?
body: <p>I have an application where the user can connect nodes together to perform realtime calculations.
  I'd like to be able to show the user a CPU-usage percentage to show how much of available CPU-time is being used, and a per-node breakdown to be able to spot the problem-areas.</p>
  
  <p>Are there any available open source implementations for a runtime profiler like this ?
  I can write my own using System.Diagnostics.Process.TotalProcessorTime, stopwatches / performancecounters, but I'd rather go with something tried &amp; tested that could maybe offer me more detailed information later if possible. </p>
  
  <p>Edit:
  I'm not looking for a stand-alone profiler since I want to show the realtime stats in the UI of my application.</p>