Thread: Code coverage tools

  1. #1
    Registered User
    Join Date
    Mar 2002

    Question Code coverage tools?

    Hi guys. I've searched the site, as well as the net, and spent about 6 hours of the company's time doing it :-) I figured I'd go ahead and ask the question.

    I need some advice on what tools are available for Linux and C for the following:

    -Code coverage analysis (like Insight for unix)
    -Memory leak analysis
    -Performance analysis

    So far I've found nothing unless it's related to Java. We're porting C code from Unix to Linux, and are in need of these tools. If any of you can post any suggestions, or email me with suggestions, I really would appreciate it.

    Thank you

    Last edited by bswole; 03-19-2002 at 04:13 PM.

  2. #2
    Registered User alex's Avatar
    Join Date
    Sep 2001

    you should try the following tools:

    gcov - coverage checker
    gprof - profiling tool
    gdb - debugger

    These are quite standard tools, usually installed along with gcc. Memory profiling is not provided in the gcc package, which makes sense because memory allocation is done by the c library, which is not part of the compiler itself. The following tools are available for memory profiling:

    ccmalloc, dmalloc, gccchecker, mpatrol, memprof

    Some graphical shells for the debugger gdb are available; they ae called: ddd, insight, and xxgdb.

    Hope this helps...


  3. #3
    Registered User
    Join Date
    Mar 2002
    Thank you for your reply Alex. I'll definately look into all of the things you mentioned.

    Any more suggestions will be appreciated. If noone is using any kind of code coverage tools, how are you turning out quality code? Or is everyone else using the tools mentioned above? Just curious.



Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Proposal: Code colouring
    By Perspective in forum A Brief History of
    Replies: 28
    Last Post: 05-14-2007, 07:23 AM
  2. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 10:20 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 4
    Last Post: 01-16-2002, 12:04 AM