views:

135

answers:

2

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?

+2  A: 

I think you can do it with SystemTap - DTrace ideas implementation on Linux

Dmitry Khalatov
It seems SystemTap is focused on profiling kernel functions and sysmtem calls, and isn't suitable for profiling user-space programs. DTrace seems nice, but isn't available on Linux AFAICS.
haggai_e
+2  A: 

Oprofile works well for this.

Greg Rogers
It seems like the right tool. I'm having some trouble using it without crashing the system, but that's a topic for a different question...
haggai_e