10

I was wondering if there is any way to gather statistics from GCC/G++ compilation process. Metrics like the number of lines compiled in the entire process, total time spent compiling, number of errors/warnings, number/size of compiled objects and so on.

I would like to make a script ( maybe in python ) to generate statistical information in a daily, weekly and monthly basis.

Any ideas?

Thanks

3
  • 1
    You could probably add shell scripts to your makefile to get the information you need.
    – Pubby
    Oct 5, 2012 at 17:31
  • 1
    How about the parameters listed in gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/Debugging-Options.html ?
    – timrau
    Oct 5, 2012 at 17:32
  • 2
    gcc/g++ has verbosity-settings to the holy-heavens. If it is anywhere it will be in their command-line documentation. I'd be shocked if it wasn't available.
    – WhozCraig
    Oct 5, 2012 at 17:32

1 Answer 1

6

I know one, it's called Cdash and it's part of a larger and ideal suite that virtually includes Cmake, Ctest and Cpack.

This will probably be an interesting video for you

2
  • 1
    +1 This looks pretty interesting. I'm already working with CMake successfully, but have my own reporting strategies on top. Oct 5, 2012 at 17:48
  • I'll watch this video latter but it seems quite interesting because I use cmake in my projects... Oct 5, 2012 at 17:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.