使用Eclipse在Windows上分析C代码 [英] Profiling C code on Windows when using Eclipse

查看:112
本文介绍了使用Eclipse在Windows上分析C代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以在Linux上使用 gprof kprof 来配置我的代码。商业软件:


$ b $
  • AQTime(更便宜,更慢,有点详细)



  • 免费软件:





    这些商业广告替代方案通过调试(添加指令)来更改编译的代码,并使用添加的指令执行定时。这意味着它们会使您的应用程序严重减缓。



    这些免费的替代方案使用抽样,这意味着它们不太详细,但速度非常快。在实践中,我发现特别是非常困倦很快就可以快速查看应用程序中的性能问题。


    I know I can profile my code with gprof and kprof on Linux. Is there a comparable alternative to these applications on Windows?

    解决方案

    Commercial software:

    • Rational Quantify (expensive, slow, but very detailed)
    • AQTime (less expensive, less slow, a bit detailed)

    Free software:

    These commercial alternatives change the compiled code by 'instrumenting' (adding instructions) to it and perform the timing withing the added instructions. This means that they cause your application to slow down seriously.

    These free alternatives use sampling, meaning they are less detailed, but very fast. In practice I found that especially Very Sleepy is very good to have a quick look at performance problems in your application.

    这篇关于使用Eclipse在Windows上分析C代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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