Thread: Memory profiler in Linux

  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,218
    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,218
    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, 02:14 AM
  4. Shared Memory - shmget questions
    By hendler in forum C Programming
    Replies: 1
    Last Post: 11-29-2005, 02:15 AM
  5. Shared memory in Linux: B-TREE of structures
    By zahid in forum Linux Programming
    Replies: 3
    Last Post: 01-26-2002, 11:15 PM