I have VS 2010 Ultimate. I have created empty win32 console solution and replaced it's cpp file with http://pastebin.com/EQJKJK6T I tried to perform CPU Sampling profiling. But for some reason I get the following messages
MessageBox:
Could not launch 'path to exe file'. Previous attempt to profile the application finished unsuccessfully. Please restart the application.
Output window:
Profiling started. Warning VSP2355: Some Windows counters will not be collected. Without this data, some performance rules may not fire. Profiling process ID 4368 (test). Process ID 4368 has exited. Data written to e:\projects\test\test101224.vsp. Profiling finished. PRF0025: No data was collected. Profiling complete.