c - 多核和 OProfile

标签 c linux profiling oprofile

oprofile 是线程感知/安全的(意味着我可以安全地分析多线程应用程序)吗?如果是,与 perf 有什么区别?

最佳答案

1 是的,oprofile 是线程感知的。

Verbatim from man opcontrol(oprofile 的控制工具):

--separate=[none,lib,kernel,thread,cpu,all]

Separate samples based on the given separator. 'lib' separates dynamically linked library samples per application. 'kernel' separates kernel and kernel module samples per application; 'kernel' implies 'library'. 'thread' gives separation for each thread and task. 'cpu' separates for each CPU. 'all' implies all of the above options and 'none' turns off separation.

2 oprofile 是系统范围的分析器,它作为守护进程运行,默认情况下分析所有系统事件。

关于c - 多核和 OProfile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12357003/

相关文章:

c - 双击时自动运行 Makefile

c - 对于这个简单的程序,词法分析后的输出是什么?

java - SVN删除的文件,如何恢复?

c# - 使用 C# 的另一个进程的内存使用情况和执行时间?

C: 前向声明一个 typedef,稍后定义用于现在声明一个函数

c - 如何安全地从 int 转换为 size_t?

linux - 从发送邮件邮件队列中删除邮件

linux - 脚本不会覆盖自动启动

c - 建立你自己的探查器 : how to catch events?

assembly - 如何将 Vtune 分析限制为特定函数