This question shows research effort; it is useful and clear
7
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我想收集有关我的线程何时被调度(和取消调度)以及在 Linux 上的 CPU 上的信息。我很乐意收集信息并将其存储在文件中以供以后离线分析,因为我需要将调度信息与我的代码生成的其他事件源合并。理想情况下,信息将由程序本身收集,因为我计划大部分时间使用机器上的所有内核,并且使用外部进程进行采样会干扰我想要测量的执行。