How do you know that the gc runs

  • Thread starter Thread starter GG
  • Start date Start date
G

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
 
GG said:
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/details.aspx?familyid=A362781C-3870-43BE-8926-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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Urgent - on site with GC problem! 6
Form GC question 3
how can I disable GC for a third of a second 4
Multithreaded GC! 42
unsafe and GC 5
Memory usage 2
Garbage collection question 1
stop the GC 12

Back
Top