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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top