使用Eclipse在Windows上分析C代码 [英] Profiling C code on Windows when using Eclipse
问题描述
我知道我可以在Linux上使用 gprof
和 kprof
来配置我的代码。商业软件:
$ b $
免费软件:
- 很困( www.codersnotes.com )
- Luke StackWalker( lukestackwalker.sourceforge.net )
这些商业广告替代方案通过调试(添加指令)来更改编译的代码,并使用添加的指令执行定时。这意味着它们会使您的应用程序严重减缓。
这些免费的替代方案使用抽样,这意味着它们不太详细,但速度非常快。在实践中,我发现特别是非常困倦很快就可以快速查看应用程序中的性能问题。
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:
- Very sleepy (www.codersnotes.com)
- Luke StackWalker (lukestackwalker.sourceforge.net)
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屋!