简体   繁体   English

分析多进程程序

[英]Profiling a multi-process program

I'd like to profile a program that forks and spawns several child processes. 我想描述一个分叉和生成几个子进程的程序。 I want to see how much time is spent in some of the functions. 我想看看在一些功能上花了多少时间。 What profiler can handle this job? 什么探查器可以处理这项工作?

Oprofile适用于此。

我认为你可以使用SystemTap - 在Linux上实现DTrace思想

Try Zoom from RotateRight. 尝试从RotateRight 缩放 It does system-wide profiling by default. 它默认执行系统范围的分析。 If you have a later (2.6.32+) kernel, you can also get a timeline view of the scheduler behavior and system calls. 如果您有一个更晚的(2.6.32+)内核,您还可以获得调度程序行为和系统调用的时间轴视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM