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?
Have a look at performance monitor (perfmon) and memory performance counters
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With