Hi,

I would like to get a callgraph for the whole time a program runs. Is this 
possible with perf?

Most profilers I know only show me where the cputime is spent. But I would 
like to know how the wall time is used and in which functions. It's hard for 
me to explain what I mean, therefore I try it with an example.

I have a program that consists basically of three functions:

func_calc() is a computationally intensive function.
func_netw() is a function that reads requests from the network.
func_disk() is a function that writes data to the filesystem.

One execution of the program might last 10 seconds. 5 seconds of the time 
the programms waits for network requests in a call to read(). 3 seconds are 
spent for calculations in func_calc() and 2 seconds pass while the programm 
blocks on the write() requests in func_disk().

Overall the profiler should tell me that 50% of runtime are used by 
func_netw(), 30% are used by func_calc() and 20% are used by func_disk().

Most of the time I want to ignore the time the program spents to wait for 
the scheduler.

How can such a profile be generated with perf?

Christoph

--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to