您使用什么工具在Windows上配置(本机)C ++?

时间:2022-04-26 04:55:26

How do Window's programmers profile their native C++ code? On Unix/Linux you have gprof [thanks Evan] & valgrind (I personally used this one, although it's not a real profiler), and recently I'm on Mac and Solaris, which means I moved to dTrace. Now when I've had the need to profile on Windows in the past, like at my previous job, I used Intel's vtune, which is great, however it's commercial, and I don't have a license for private use, so I'm left wondering what's the standard (free is better) tool windows programmers commonly use?

Window的程序员如何描述他们的原生C ++代码?在Unix / Linux上你有gprof [感谢Evan]和valgrind(我个人使用过这个,虽然它不是真正的探查器),最近我在Mac和Solaris上,这意味着我转移到了dTrace。现在,当我过去需要在Windows上进行配置时,就像我之前的工作一样,我使用了英特尔的vtune,这很棒,但它是商业用途,而且我没有私人使用的许可证,所以我'我想知道什么是标准(免费更好)工具窗口程序员常用的?

Thanks in advance

提前致谢

3 个解决方案

#1


8  

You should give Xperf a try - it's a new system wide performance tool that can drill down to a particular application and what exactly it's doing inside itself as well as what's it's asking of the OS.

您应该尝试一下Xperf - 它是一个新的系统范围的性能工具,可以深入到特定的应用程序,它本身正在做什么以及它对操作系统的要求是什么。

It's freely available on the Windows SDK for Windows Server 2008 and .NET Framework 3.5 ISO:

它可以在Windows SDK for Windows Server 2008和.NET Framework 3.5 ISO上免费获得:

  1. Install the SDK by downloading the ISO image, or using the Web based installer.
  2. 通过下载ISO映像或使用基于Web的安装程序来安装SDK。

  3. Find the xperf MSI in the SDK's "bin" directory. It will be named xperf_x86.msi, xperf_x64.msi, or xperf_ia64.msi, depending on the architecture for which you install the SDK.
  4. 在SDK的“bin”目录中找到xperf MSI。它将命名为xperf_x86.msi,xperf_x64.msi或xperf_ia64.msi,具体取决于您为其安装SDK的体系结构。

  5. You can then install the xperf tools from the MSI directly, or copy the xperf MSI file to another location and install it from there. For example, you could keep the MSI files on a USB key.
  6. 然后,您可以直接从MSI安装xperf工具,或将xperf MSI文件复制到另一个位置并从那里安装。例如,您可以将MSI文件保存在USB密钥上。

Source: Pigs Can Fly blog on MSDN.com

资料来源:Pigs Can Fly博客在MSDN.com上

Just verified that the xperf msi will not install except on windows Vista or Windows 2007.

刚验证除了Windows Vista或Windows 2007之外,xperf msi不会安装。

-Adam

#2


3  

I got AMD Code Analyst. It's free, and you don't need an AMD CPU ;)

我有AMD代码分析师。它是免费的,你不需要AMD CPU;)

It's a little basic compared to something like Intel's VTune, but the price is right.

与英特尔的VTune相比,它有点基础,但价格合适。

#3


1  

This link talks about Linux, but I use the same technique in MSVC and in C#.

这个链接谈论Linux,但我在MSVC和C#中使用相同的技术。

#1


8  

You should give Xperf a try - it's a new system wide performance tool that can drill down to a particular application and what exactly it's doing inside itself as well as what's it's asking of the OS.

您应该尝试一下Xperf - 它是一个新的系统范围的性能工具,可以深入到特定的应用程序,它本身正在做什么以及它对操作系统的要求是什么。

It's freely available on the Windows SDK for Windows Server 2008 and .NET Framework 3.5 ISO:

它可以在Windows SDK for Windows Server 2008和.NET Framework 3.5 ISO上免费获得:

  1. Install the SDK by downloading the ISO image, or using the Web based installer.
  2. 通过下载ISO映像或使用基于Web的安装程序来安装SDK。

  3. Find the xperf MSI in the SDK's "bin" directory. It will be named xperf_x86.msi, xperf_x64.msi, or xperf_ia64.msi, depending on the architecture for which you install the SDK.
  4. 在SDK的“bin”目录中找到xperf MSI。它将命名为xperf_x86.msi,xperf_x64.msi或xperf_ia64.msi,具体取决于您为其安装SDK的体系结构。

  5. You can then install the xperf tools from the MSI directly, or copy the xperf MSI file to another location and install it from there. For example, you could keep the MSI files on a USB key.
  6. 然后,您可以直接从MSI安装xperf工具,或将xperf MSI文件复制到另一个位置并从那里安装。例如,您可以将MSI文件保存在USB密钥上。

Source: Pigs Can Fly blog on MSDN.com

资料来源:Pigs Can Fly博客在MSDN.com上

Just verified that the xperf msi will not install except on windows Vista or Windows 2007.

刚验证除了Windows Vista或Windows 2007之外,xperf msi不会安装。

-Adam

#2


3  

I got AMD Code Analyst. It's free, and you don't need an AMD CPU ;)

我有AMD代码分析师。它是免费的,你不需要AMD CPU;)

It's a little basic compared to something like Intel's VTune, but the price is right.

与英特尔的VTune相比,它有点基础,但价格合适。

#3


1  

This link talks about Linux, but I use the same technique in MSVC and in C#.

这个链接谈论Linux,但我在MSVC和C#中使用相同的技术。