Thread: Difference between gprof and gcov

  1. #1
    Registered User
    Join Date
    Jan 2009

    Difference between gprof and gcov

    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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.

Popular pages Recent additions subscribe to a feed