C++ 在 Visual Studio 2008 PRO 中进行分析

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/61669/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 12:34:21  来源:igfitidea点击:

Profiling in Visual Studio 2008 PRO

c++visual-studiovisual-studio-2008profiling

提问by Fire Lancer

How do I use the profiler in Visual Studio 2008?

如何在 Visual Studio 2008 中使用探查器?

I know theres a build option in Config Properties -> Linker -> Advanced -> Profile (/PROFILE), however I can't find anything about actauly using it, only articles I was able to find appear to only apply to older versions of Visual Studio (eg most say to goto Build->Profile to bring up the profile dialog box, yet in 2008 there is no such menu item).

我知道在配置属性 -> 链接器 -> 高级 -> 配置文件 (/PROFILE) 中有一个构建选项,但是我找不到任何关于实际使用它的信息,只有我能找到的文章似乎只适用于旧版本的Visual Studio(例如,大多数人说转到 Build->Profile 以打开配置文件对话框,但在 2008 年没有这样的菜单项)。

Is this because Visual Studio 2008 does not include a profiler, and if it does where is it and where is the documentation for it?

这是因为 Visual Studio 2008 不包含分析器,如果包含,它在哪里以及它的文档在哪里?

采纳答案by ChrisN

The profiler is only available in the Team System editions of Visual Studio 2008. The last version that I used that included a profiler was Visual C++ 6.0.

探查器仅在 Visual Studio 2008 的 Team System 版本中可用。我使用的最后一个包含探查器的版本是 Visual C++ 6.0。

For Visual Studio 2005, you could try Compuware DevPartner Performance Analysis Community Edition.

对于 Visual Studio 2005,您可以尝试Compuware DevPartner Performance Analysis Community Edition

回答by Imran

Microsoft has released stand-alone Profiler for VS 2008 here

微软已经发布了独立的探查2008 VS这里

回答by Ant

There was also a list of .NET profilers in the What Are Some Good .NET Profilersquestion.

What Are Some Good .NET Profilers问题中还有一个 .NET Profiler 列表。

回答by Michelle

As I understood from reading a few sites, when you use VS 2008 stand alone profiler to create .vspfiles, you will need either VS2008 Premium or Ultimate to view .vspfiles.

正如我通过阅读一些网站了解到的,当您使用 VS 2008 独立分析器创建.vsp文件时,您将需要 VS2008 Premium 或 Ultimate 来查看.vsp文件。

By the way, I installed VS2012 Release candidate which is available for free (trial version?) and I can use its profiling engine.

顺便说一下,我安装了 VS2012 候选版本,它是免费的(试用版?),我可以使用它的分析引擎。