title: Count Function Calls
body: <p>I would like to count the number of times the following methods executed since application startup. How can I do that?</p>
  
  <pre><code>System.Drawing.Graphics.FromHdcInternal(IntPtr hdc)
  System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height)
  </code></pre>