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

Filipe Felisbino
  • 2,712
  • 25
  • 26
  • 1
    You could probably add shell scripts to your makefile to get the information you need. – Pubby Oct 05 '12 at 17:31
  • 1
    How about the parameters listed in http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/Debugging-Options.html ? – timrau Oct 05 '12 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 05 '12 at 17:32

1 Answers1

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

axis
  • 874
  • 2
  • 7
  • 13