views:

130

answers:

2

I wanted to write a small app that would sit in my taskbar and monitor what Visual Studio was doing all day. Specifically, what I really want to figure out is how long I spend waiting on Visual Studio to build my solution each day.

Could someone point me in the right direction. Is there something in the Visual Studio SDK that would help?

+9  A: 

Since this is just for curiosity, I'd go with an easy option...

One potential would be to just make a pre-build and post-build script for your project, and log the start/stop of your build times.

You could then just parse the log and figure out the total time.

Reed Copsey
Thanks for the answer. My solution has ~15 projects. Can I do this on a solution level, or do I need to do it for each project?
Rob P.
It depends on what you want to measure. However, wrapping every project (although you could use the same script for this) would be the safest, since not every project gets built every time you "build", unless you're always doing full builds.
Reed Copsey
A: 

If the machine is only (or mostly) used for development, you could record the CPU time used by the idle thread in the Task Explorer at the start and the end of the day. Comparing the difference to the wall clock time will give you the total CPU used.

Xavier Nodet