From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 17 Jan 2011 11:56:22 -0500 To: 9fans@9fans.net Message-ID: In-Reply-To: <20110117165024.CC7C75B04@mail.bitblocks.com> References: <20110117165024.CC7C75B04@mail.bitblocks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] `mk` (from Plan9 ports) efficiency related issue Topicbox-Message-UUID: 9d3fcd58-ead6-11e9-9d60-3106f5b1d025 > strace tells you what system calls were made and when. To > find out which functions use most time, compile with -pg and > look at the gprof output once done. That 14 seconds were > probably spent computing dependencies. You can convert your > test.mk to a Makefile with a trivial sed script. See what > bsdmake or gmake does with it time wise. {bsd,g}make have > been been abused with huge Makefiles for far longer and are > likely to be friendlier to them :-) why not just use prof, which is exactly the tool for the job? i don't see how comparing with *make would get one closer to solving the mystery. - erik