How to measure developer build time

时光毁灭记忆、已成空白 提交于 2019-12-10 07:09:07

问题


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?


回答1:


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.




回答2:


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.




回答3:


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 :-)



来源:https://stackoverflow.com/questions/1568319/how-to-measure-developer-build-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!