GC (VSPerfCmd)
Visual Studio 2008
The GC option enables the collection of .NET Framework memory allocation and object lifetime data. The GC option can only be used with the sampling profiling method and only with the Launch option.
When you are using the GC option, the VSPerfClrEnv /sampleon command is not required.
If no parameters are specified, or if the Allocation parameter is specified, only .NET Framework memory allocation data is collected. If the Lifetime parameter is specified, both .NET Framework memory allocation and .NET Framework object lifetime data is collected.
VSPerfCmd.exe /Launch:AppName /GC[:{Allocation|Lifetime}][Options]