PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

memory profiler / tracer?

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



Joined: 02 Jul 2008
Posts: 3
Location: Kiel, Germany

PostPosted: Thu Jul 03, 2008 2:11 am    Post subject: memory profiler / tracer? Reply with quote

Hi!

Does anybody know how to find out how much memory a program uses during execution? Is there some kind of debugger/profiler which does this? Since I use dynamic memory allocation a lot, it would be interesting to know which arrays are allocated currently and their size.

Thanks for your help!
Jan
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5815
Location: The Portland Group Inc.

PostPosted: Tue Jul 08, 2008 10:59 am    Post subject: Reply with quote

Hi Jan,

Most people simply use 'top' to determine how much total memory a program is using. For more advance memory profiling, you should take a look at Valgrind (www.valgrind.org), specifically the Massif heap profiler. I have not used Massif myself, and don't know if it will give you the details your looking for, but it is worth investigating.

- Mat
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