Code coverage tools

This is a discussion on Code coverage tools within the Linux Programming forums, part of the Platform Specific Boards category; Hi guys. I've searched the site, as well as the net, and spent about 6 hours of the company's time ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    2

    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


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

  2. #2
    Registered User alex's Avatar
    Join Date
    Sep 2001
    Posts
    132
    Hi!

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

    alex

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    2
    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.


    Thanks,

    ~Brandon

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Proposal: Code colouring
    By Perspective in forum A Brief History of Cprogramming.com
    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, 11:38 AM
  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-15-2002, 11:04 PM

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