Question

When profiling an attached process with Visual Studio 2010, I can only get a memory profiling report, no CPU profiling data. I triple-checked that the collection method is "Sampling" and that "Collect .NET object allocation information" is unchecked.

I basically got the same problem as this fellow, but the answer did not solve my problem.

Was it helpful?

Solution

I think something was wrong with the configuration of the environment variables for profiling.

Executing

VSPerfCLREnv /sampleon

via command line did the trick. Afterwards profiling the CPU worked with the command line tools as well as in Visual Studio.

More details on how to use the profiler from the command line can be found here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top