Memory Profile

This is a discussion on Memory Profile within the C Programming forums, part of the General Programming Boards category; Hello, I'm looking for a tool for memory profiling. I need to get some details about the memory usage of ...

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    2

    Memory Profile

    Hello,
    I'm looking for a tool for memory profiling. I need to get some details about the memory usage of my program. I found that most tools, such as purify, aims at finding the memory errors.

    My program is written using ansi C and I'm using MSVC.

    Any ideas?

    Thanks,
    Ayman.

  2. #2
    .
    Join Date
    Nov 2003
    Posts
    307
    Will the GetProcessMemoryInfo API do what you want?

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    2
    Hi Jim,
    I need more detailed information. For example I need to know how much memory allocated for each object, how much a particular function allocate on the stack..

    thanks.

  4. #4
    vae victus! skorman00's Avatar
    Join Date
    Nov 2003
    Posts
    594
    the CrtDebug Libraries should also help you out. Give that a search in MSVC's help's index.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  2. Suggestions on this C style code
    By Joelito in forum C Programming
    Replies: 11
    Last Post: 06-07-2007, 04:22 AM
  3. Shared Memory - shmget questions
    By hendler in forum C Programming
    Replies: 1
    Last Post: 11-29-2005, 02:15 AM
  4. Pointer's
    By xlordt in forum C Programming
    Replies: 13
    Last Post: 10-14-2003, 03:15 PM
  5. Managing shared memory lookups
    By clancyPC in forum Linux Programming
    Replies: 0
    Last Post: 10-08-2003, 05:44 AM

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