How to Perform GNU Make Files Analysis

We have many GNU Make files. I would like to use every target used during build to identify performance bottlenecks. Is there a tool or technique to do this in a convenient and automatic way?

I would like to analyze these results in order to monitor the performance factor, since changes in assembly and growth (but they are already quite large and complex).

+5
source share
4 answers

I think I saw this question here before ...

, , , - . ( make ), , , .

:

make

make SHELL='echo $@: && time sh'

, - . - Makefile, , Make .

. -

perl -0pe 's/([^:])\s*\n\t[@-]?/$1; /g' Makefile | make -f - SHELL='echo $@: && time sh'

.

, , ; GNU make C, .

+5

: make, .. cd ? . make 2 .

.

+1

Makefile, make-profiler:

https://github.com/gojuno/make-profiler

make, Makefile, . , .

+1

Below you will learn how each command works, and how many times due to incorrectly used variables:,: =

make SHELL='/bin/sh -x'
0
source

All Articles