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

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

问题描述

我们的构建服务器花费太长时间来构建我们的 C++ 项目之一.它使用 Visual Studio 2008.有什么方法可以让 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?

推荐答案

Menu ToolsOptionsProjects and SolutionsVC++ 项目设置构建时间应该可以工作.

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

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

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