Added a garbage collection monitoring utility.