Search code examples
c++gccstatisticscode-metrics

G++ Compilation Statistics


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


Solution

  • 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