[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gprof - question reg. pruning output display
From: |
rakesh_usenet |
Subject: |
gprof - question reg. pruning output display |
Date: |
21 Dec 2004 20:36:26 -0800 |
User-agent: |
G2/0.2 |
Hi,
I am using 'gprof' to profile my C++ program. I am examining the
call-graph sequence of the program alone and this is how my code looks.
$ gprof -b -q --function-ordering -J myprog > profile.out
$ cat profile.out
[1] 92.9 0.00 0.07 main [1]
0.00 0.06 1/1 LongFunc [4]
0.00 0.00 1/1 Func2 [38]
0.00 0.00 1/1 Func3 [173]
0.00 0.00 1/1 Func4 [180]
0.00 0.00 1/1 Func5 [193]
0.00 0.00 1/1 Func6 [181]
0.00 0.00 1/1 Func7 [168]
-----------------------------------------------
0.00 0.06 1/1 LongFunc [3]
It prints all the functions of the call-graph, but I am primarily
concerned and prints a summary at the end ( with the 'critical'
function listed). I would like to prune the result such that *only* the
critical function get listed.
That is, in this case I want something as follows.
[1] 92.9 0.00 0.07 main [1]
0.00 0.06 1/1 LongFunc [4]
-----------------------------------------------
0.00 0.06 1/1 LongFunc [3]
What is the appropriate gprof option for this.
I use GNU gprof 2.14.90.0.7 .
Thanks for the help in this regard.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gprof - question reg. pruning output display,
rakesh_usenet <=