G++ Compilation Statistics
Asked Answered
C

1

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

Chiller answered 5/10, 2012 at 17:28 Comment(3)
You could probably add shell scripts to your makefile to get the information you need.Butadiene
How about the parameters listed in gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/Debugging-Options.html ?Pili
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.Etui
A
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

Arianaariane answered 5/10, 2012 at 17:40 Comment(2)
+1 This looks pretty interesting. I'm already working with CMake successfully, but have my own reporting strategies on top.Unalienable
I'll watch this video latter but it seems quite interesting because I use cmake in my projects...Chiller

© 2022 - 2024 — McMap. All rights reserved.