开发者

How to measure developer build time

开发者 https://www.devze.com 2022-12-07 23:37 出处:网络
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

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 St开发者_JAVA百科udio SDK that would help?


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.


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.


My solution is to copy the build log into a new text file within VS, search for Time Elapsed within the file, copy all the occurrences into excel select the cell under the build times for each of the projects and press the Sigma symbol to add them all. It takes 15s to do :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消