2

I've created a simple program printing "Hello world" 1000 times in C. Now I want to test very sleepy profiler, but it doesn't see the running program among processes. I run the application in the debug mode, visual studio 2010.

Clare Macrae
  • 3,670
  • 2
  • 31
  • 45
pojo
  • 307
  • 1
  • 4
  • 4

3 Answers3

3

Alternatively you can also launch the profiler first, then run your program via File/Launch...

Shameless plug: You can use the modified version of 'Very sleepy' that allows you to start the profiling target w/ profiling paused, and with an API that allows you to start/stop profiling programmatically here: http://hoffesommer.com/weblog/2011/06/17/very-sleepy-0_7_2-cpp-profiler-now-with-api/

2

If you're using Vista or Windows 7, you may need to run Very Sleepy as an Administrator so it can see (and list) the process.

Clippy
  • 354
  • 3
  • 10
0

I would suggest you to use process explorer. Launch it before you launch your program, and you will see it appearing on the list, and know its identifier, and even its threads if you wish it, by going to properties.

So when you launch sleepy, you will exactly now the PID and TID you are looking for.

Aldian
  • 2,592
  • 2
  • 27
  • 39