title: Is there an event for when garbage collection occurs in .NET?
body: <p>I've got a weird slowdown in my ASP.NET website that I cannot seem to track down. I'm suspecting that GC might be kicking in and halting my threads. To know for sure it would be nice to log every time when GC does occur.</p>
  
  <p>I could make a dummy object and do the logging in its finalizer, but that would then be a one-shot solution, while in my case there are several such inexplainable pauses.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>Added:</strong> The environment is VS2008/.NET 3.5 SP1. And no, the <a href="http://msdn.microsoft.com/en-us/library/cc713687.aspx" rel="noreferrer">Garbage Collection Notifications</a> won't do because they are a method of polling, and don't work for a concurrent GC.</p>