Memory profiler in Linux

This is a discussion on Memory profiler in Linux within the C Programming forums, part of the General Programming Boards category; Is there any good memory profiler that can dectect my program memory usage and leaks in Linux environment?...

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    163

    Memory profiler in Linux

    Is there any good memory profiler that can dectect my program memory usage and leaks in Linux environment?

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,166
    I've found valgrind to be a really excellent tool.
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    163
    Hi itsme86,

    If you don't mind, can you give me a crash course on how to use valgrind? Basically what does it do? It just detect any memory leaks? Does it works like gprof? (I only know how to use gprof) Hee...

  4. #4
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,166
    Try the very first google link with valgrind as the search parameter. It amazes me sometimes how little people are willing/able to do for themselves.
    If you understand what you're doing, you're not learning anything.

  5. #5
    Registered User
    Join Date
    Dec 2004
    Posts
    163
    Ok, thanks for your help!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with insert/delete binary search tree
    By Nazgulled in forum C Programming
    Replies: 39
    Last Post: 03-25-2009, 04:24 PM
  2. Problems with shared memory shmdt() shmctl()
    By Jcarroll in forum C Programming
    Replies: 1
    Last Post: 03-17-2009, 10:48 PM
  3. Replies: 4
    Last Post: 01-13-2008, 01:14 AM
  4. Shared Memory - shmget questions
    By hendler in forum C Programming
    Replies: 1
    Last Post: 11-29-2005, 01:15 AM
  5. Shared memory in Linux: B-TREE of structures
    By zahid in forum Linux Programming
    Replies: 3
    Last Post: 01-26-2002, 10:15 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21