PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

calling path determination

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
RickChen



Joined: 26 May 2008
Posts: 1

PostPosted: Mon May 26, 2008 6:57 pm    Post subject: calling path determination Reply with quote

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
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Tue May 27, 2008 8:05 am    Post subject: Reply with quote

Hi,

Please try with -Mipa=cg.

Hongyon
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group