471,334 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,334 software developers and data experts.

How do you know that the gc runs

GG
Is there a way to know when the garbage collection runs? We would like
to see how an app performs and when various gc levels kick in.

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Apr 7 '08 #1
3 1037
GG wrote:
Is there a way to know when the garbage collection runs? We would like
to see how an app performs and when various gc levels kick in.
I recommend CLR Profiler for that:
http://www.microsoft.com/downloads/d...6-862B40AA0CD0

If you really want to know exactly when a GC is happening and what kind of
GC it is, you'll have to write your own profiler
(http://msdn2.microsoft.com/library/cc300553). This requires writing
unmanaged code and is not exactly trivial. It's unlikely to be of more use
than the info CLR Profiler can give you.

--
J.
Apr 7 '08 #2
On Apr 7, 4:14*pm, GG <GGwrote:
Is there a way to know when the garbage collection runs? We would like
to see how an app performs and when various gc levels kick in.

Thanks

*** Sent via Developersdexhttp://www.developersdex.com***
Are you talking about a kind of event you can call from your code?
IF so I do not know of any way of doing that.

Externally you can use any of the profilers available.
Apr 7 '08 #3
GG
This is what I am looking for.
Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Apr 8 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by CoralineSage | last post: by
4 posts views Thread by Jacek Dziedzic | last post: by
4 posts views Thread by Alan Silver | last post: by
6 posts views Thread by sethukr | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.