你如何配置您的code? [英] How do you profile your code?

查看:107
本文介绍了你如何配置您的code?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不希望每个人都使用的Rational Purify的

I hope not everyone is using Rational Purify.

所以,当你要衡量你做什么:

So what do you do when you want to measure:


  • 由函数所用的时间

  • 峰值内存使用量

  • code覆盖

目前,我们做手工[使用带有时间戳和另一个脚本来分析日志并输出到excel日志语句。呼......)

At the moment, we do it manually [using log statements with timestamps and another script to parse the log and output to excel. phew...)

你会怎么推荐?指着工具或技术,将AP preciated!

What would you recommend? Pointing to tools or any techniques would be appreciated!

编辑:对不起,我没有先指定环境的它简单 C 上一个专有移动的平台

Sorry, I didn't specify the environment first, Its plain C on a proprietary mobile platform

推荐答案

您可能需要为性能分析和code覆盖不同的工具。

You probably want different tools for performance profiling and code coverage.

有关MacOSX的分析我preFER鲨鱼。它是从苹果免费的,非常好。如果你的程序是香草c您应该能够使用它,如果你可以得到一个苹果的举行。

For profiling I prefer Shark on MacOSX. It is free from Apple and very good. If your app is vanilla C you should be able to use it, if you can get hold of a Mac.

有关在Windows上分析,您可以使用LTProf。价格便宜,但不是很大:
http://successfulsoftware.net/2007/12/18/optimising-your-应用程序/

For profiling on Windows you can use LTProf. Cheap, but not great: http://successfulsoftware.net/2007/12/18/optimising-your-application/

(我认为微软是通过不提供与更便宜的版本的Visual Studio体面探查真正拍摄自理的脚。)

(I think Microsoft are really shooting themself in the foot by not providing a decent profiler with the cheaper versions of Visual Studio.)

有关报道我在Windows preFER覆盖验证:
http://successfulsoftware.net/2008/03/10/coverage-validator/
它更新覆盖的实时性。

For coverage I prefer Coverage Validator on Windows: http://successfulsoftware.net/2008/03/10/coverage-validator/ It updates the coverage in real time.

这篇关于你如何配置您的code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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