Get-notified-when-garbage-collections-happens(www.codemine.net)

submitted by skpananghatskpananghat(184) 9 months, 21 days ago

This is a code snippet which i got from Jeffrey Richters blog. This code offers a way to raise notification event when a garbage collection occurs on Generation 0 or Generation 2 object Here is the code for the class:

2 comments |category: |Views: 10

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 9 months, 19 days ago 0

There doesn't seem to be a link to the original article in that post, so I'm wondering what the benefit to having this is? I know that sometimes garbage collection can cause performance droops in your application, but knowing that it's coming doesn't really provide any benefit (that I can see).

Just curious :-)

Reply

posted by vijaystvijayst(1311) 9 months, 19 days ago 0

Knowing about Garbage collection is very useful for resolving performance problems in .Net. It will be helpful if the author has explained more about generation 0..2 objects. This is because not all readers will understand what generation means when it comes to GC.

Reply

information Login or create an account to comment on this story