Possible Duplicate:
Monitoring Garbage Collector in C#
I'd like to know how often garbage collection is run in my C# application so that I can log the timestamps for later analysis.
Is there maybe some event or something similar that is fired before or after garbage collection so that I know when exactly garbage collection happened?