在Visual Studio中显示构建时间? [英] Displaying build times in Visual Studio?

查看:173
本文介绍了在Visual Studio中显示构建时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的构建服务器花费太长时间来构建我们的C ++项目之一.它使用Visual Studio2008.是否有任何方法可以使devenv.com记录在解决方案中构建每个项目所花费的时间,以便使我知道将精力集中在哪里?

Our build server is taking too long to build one of our C++ projects. It uses Visual Studio 2008. Is there any way to get devenv.com to log the time taken to build each project in the solution, so that I know where to focus my efforts?

在这种情况下,不能选择改进的硬件.

Improved hardware is not an option in this case.

我尝试设置输出详细程度(在工具/选项/项目和解决方案/构建和运行/MSBuild项目构建输出详细程度"下).这似乎在IDE中没有任何作用.

I've tried setting the output verbosity (under Tools / Options / Projects and Solutions / Build and Run / MSBuild project build output verbosity). This doesn't seem to have any effect in the IDE.

从命令行运行MSBuild时(对于Visual Studio 2008,它必须是MSBuild v3.5),它显示末尾经过的总时间,但不显示在IDE中.

When running MSBuild from the command line (and, for Visual Studio 2008, it needs to be MSBuild v3.5), it displays the total time elapsed at the end, but not in the IDE.

我真的想要解决方案中每个项目的耗时报告,以便我可以弄清楚构建过程在哪里花费了时间.

I really wanted a time-taken report for each project in the solution, so that I could figure out where the build process was taking its time.

或者,由于我们实际上是使用NAnt来驱动构建过程(我们使用Jetbrains TeamCity),有没有办法让NAnt告诉我每个步骤花费的时间?

Alternatively, since we actually use NAnt to drive the build process (we use Jetbrains TeamCity), is there a way to get NAnt to tell me the time taken for each step?

推荐答案

菜单工具选项项目和解决方案 VC ++项目设置构建时间应该可以工作.

Menu ToolsOptionsProjects and SolutionsVC++ Project SettingsBuild Timing should work.

这篇关于在Visual Studio中显示构建时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆