I want to get a better idea of my build job metrics but unfortunately, make
doesn't output timestamps per se.
If I run make --print-data-base
, for a given target it outputs a line
# Last modified 2016-08-15 13:53:16
but that doesn't give me the duration.
QUESTION
Is there a way to get duration of building a target without modifying each target? Some targets are inside makefiles which are generated DURING the build so not feasible to modify their recipes.
POSSIBLE SOLUTION
I could implement a pre- and post-recipe for every target and output a timestamp that way.
Is that a good idea given this is parallel make
? Obviously there would be increased build time from calling a pre- and post-recipe for every target but I'd be fine with that.