编译器与 gprof 兼容吗?

发布于 2024-07-23 14:55:43 字数 32 浏览 5 评论 0原文

我正在寻找能够生成 gprof 输出的编译器列表。

I am looking for a list of compilers able to generate a gprof output.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

诗化ㄋ丶相逢 2024-07-30 14:55:43

gprof 受 gcc 之外的支持。 例如,Sun Studio 支持它,berkeley 编译器也支持它。

gprof is supported beyond gcc. For instance, Sun Studio supports it, as does the berkeley compiler.

浅笑轻吟梦一曲 2024-07-30 14:55:43

根据您的平台,您可能会发现动态运行时工具(例如 dtrace 或 oprofile)可以提供帮助。

它们不是编译器,但可以提供与 gprof 相同类型的数据,并且可以应用于现有程序,而无需源代码或无需重新编译它们。

oprofile 有一种直接输出 gprof 兼容数据的模式:

http://oprofile.sourceforge.net/doc /opgprof.html

Depending upon your platform, you might find that a dynamic run-time tool such as dtrace or oprofile can help.

These are not compilers, but can provide the same kind of data as gprof, and can be applied to existing programs without needing the source or having to recompile them.

oprofile has a mode to directly output gprof compatible data:

http://oprofile.sourceforge.net/doc/opgprof.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文