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/