Difference between gprof and gcov

This is a discussion on Difference between gprof and gcov within the C Programming forums, part of the General Programming Boards category; Hi, I was wondering what is the difference between gprof and gcov? Seems to me they are same? Some even ...

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    159

    Difference between gprof and gcov

    Hi,
    I was wondering what is the difference between gprof and gcov? Seems to me they are same? Some even say to use them together?
    Thanks and regards!

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,437
    gprof tells you how long various things took to execute.
    gcov tells you what lines of code were executed, to tell you how good your tests are.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

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