是否有C(GCC)分析器单独配置文件code线? [英] Is there a profiler for C (gcc) to profile code lines separately?

查看:84
本文介绍了是否有C(GCC)分析器单独配置文件code线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我来自一个Matlab的背景,使我习惯了探查哪些型材每一行,而不仅仅是像 gprof的每个函数或 callgrind 。是否有 C 探查具有类似的功能?

I come from a Matlab background so I am used to a profiler which profiles every single line and not just every function like gprof or callgrind. Is there a profiler for C with a similar feature?

谢谢!

推荐答案

鲨鱼,在Mac OS X中的分析工具之一,可以做到这一点(甚至通过指令配置文件)。我知道你的截图是在Windows上,这样可能没有帮助,但也许你可以运行在Mac上的code。你可以尝试很困,但我从来没有用过它,不知道它有多好是。

Shark, one of the profiling tools in Mac OS X, can do that (or even profile by instruction). I realise that your screenshot is on Windows so that may not be helpful, but perhaps you can run your code on a Mac. You could try Very Sleepy, but I've never used it so have no idea how good it is.

这篇关于是否有C(GCC)分析器单独配置文件code线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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