| View previous topic :: View next topic |
| Author |
Message |
RickChen
Joined: 26 May 2008 Posts: 1
|
Posted: Mon May 26, 2008 6:57 pm Post subject: calling path determination |
|
|
Hello All:
I want to know if there is any info about knowing the calling path of a program.
like:
func3(){
func1();
}
main()
{
func1();
func2();
func3();
func1();
func2();
}
after using some tools, I expect to see
main() --> func1() --> func2() --> func3() --> func1() --> func2()
...........................................................|........................................
...........................................................v.......................................
.......................................................func1()...................................
The call graph in gprof seems just gives the times a function called, not the order or the relation between function calls.
thanks very much |
|
| Back to top |
|
 |
hongyon
Joined: 19 Jul 2004 Posts: 551
|
Posted: Tue May 27, 2008 8:05 am Post subject: |
|
|
Hi,
Please try with -Mipa=cg.
Hongyon |
|
| Back to top |
|
 |
|