C和C ++源$ C ​​$ C分析工具 [英] C and C++ source code profiling tools

查看:132
本文介绍了C和C ++源$ C ​​$ C分析工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  什么(对于C ++)

有没有什么好的工具分析源$ C ​​$ C这是C和C ++的组合。哪些优点和缺点的,哪些你用过并会建议以供使用。请不要误会我从谷歌工具的列表。我能做到这一点,我想是利用人谁使用了这些工具,并知道它们的优点和缺点的个人经验。结果
先谢谢了。

Are there any good tools to profile a source code which is mix of of C and C++. What are the pros and cons of any, and which ones have you used and would reccomend for usage. Please do not get me a list of tools from google. I can do that too, what i want is to leverage the personal experience of someone who has used these tools and knows the pros and cons about them.
Thanks in advance.

推荐答案

我发现 gprof的是最好的CPU热点探查,并谷歌性能工具的是最好的采样分析器。 C和C ++都工作。

I've found gprof to be the best CPU hotspot profiler, and Google Performance Tools to be the best sampling profiler. Both work for C and C++.

在我看来有在Windows 没有很好的分析工具。

In my opinion there are no good profiling tools on Windows.


  • 只有GCC

  • 工程与C和C ++

  • 只有把CPU时间和code的 的内部二进制文件,你需要的一切你想要的轮廓静态链接

  • 非常准确

  • 添加一个小的开销,以执行

  • GCC only
  • Works with C and C++
  • Only treats CPU time, and code inside the binary, you need everything you wish to profile statically linked in
  • Very accurate
  • Adds a small overhead to execution

  • 我觉得它需要的GNU工具链

  • 有时无法识别符号

  • 非常定制

  • 输出到一个巨大的各种格式,包括Callgrind格式,并且自动加载KCacheGrind调试你

  • 拥有不同的内存分析工具也

  • 是一个的采样的探查,以最小的开销

  • I think it requires the GNU tool chain
  • Occasionally fails to identify symbols
  • Very customizable
  • Outputs to a huge variety of formats, including the Callgrind format, and automatically loads KCacheGrind for you
  • Has various memory profiling tools also
  • Is a sampling profiler, with minimal overhead
  • Alternative to -pg with Clang?
  • What's your favorite profiling tool (for C++)
  • Alternatives to gprof
  • C++ Code Profiler
  • Confusing gprof output

这篇关于C和C ++源$ C ​​$ C分析工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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