rjdevereux
rjdevereux

Reputation: 1892

How long does a GC take?

We have a theory that gen 2 GCs could be introducing delays into an application, is there a way to profile how long GCs take?

Upvotes: 9

Views: 2044

Answers (3)

rjdevereux
rjdevereux

Reputation: 1892

Perfview tracks all sorts of useful information about GC:

Downlaod: http://www.microsoft.com/en-us/download/details.aspx?id=28567

Blog post + Video: http://blogs.msdn.com/b/dotnet/archive/2012/10/09/improving-your-app-s-performance-with-perfview.aspx

Upvotes: 0

Naveen
Naveen

Reputation: 4110

The .NET 4.0 has ETW for GC which can help in profiling the time spent on GC.

Here is an answer similar to your question Can you repro this 64-bit .NET 4 GC bug?

Upvotes: 3

TToni
TToni

Reputation: 9391

There are performance counters for the total time spent in GC and various info about number of collections, heap sizes and so on. See this article for detailed instructions.

If you just want a quick look at an application, use the process explorer. It can show most of the .NET statistics for a process.

Upvotes: 5

Related Questions