From owner-freebsd-stable@freebsd.org Tue Oct 3 23:40:21 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ACC61E283A2 for ; Tue, 3 Oct 2017 23:40:21 +0000 (UTC) (envelope-from mack@macktronics.com) Received: from borg.macktronics.com (gw.macktronics.com [209.181.253.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 881CE697AB for ; Tue, 3 Oct 2017 23:40:20 +0000 (UTC) (envelope-from mack@macktronics.com) Received: from pandora.local (olive.macktronics.com [209.181.253.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by borg.macktronics.com (Postfix) with ESMTPS id 3CFC2231; Tue, 3 Oct 2017 18:40:13 -0500 (CDT) From: Dan Mack To: Andy Farkas Cc: freebsd-stable@freebsd.org Subject: Re: my build time impact of clang 5.0 In-Reply-To: <59D2AD1A.8070608@andyit.com.au> (Andy Farkas's message of "Tue, 03 Oct 2017 07:18:18 +1000") References: <59D2AD1A.8070608@andyit.com.au> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Date: Tue, 03 Oct 2017 18:40:12 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2017 23:40:21 -0000 Andy Farkas writes: > Perhaps you could hack src/tools/tools/whereintheworld/whereintheworld.pl > > -andyf So, I creatd a slightly different build script in perl; kinda works but needs to be optimized: https://github.com/danmack/freebsd-buildtools Basic output looks like with timing on each "section": Building FreeBSD (svn: 324242) Build Time : 20171003.174621 SRC URL : https://svn.freebsd.org/base/stable/11 KERNEL CONF: GENERIC BUILD UUID : 20171003.174621|https://svn.freebsd.org/base/stable/11|GENERIC|/usr/src SRC DIR : /usr/src LOG DIR : /var/log/bsdbuild/324242 ... building phase buildworld ... >>> World build started ... 00:00:02 : 00:00:04 >>> Rebuilding the temporary build tree ... 00:00:00 : 00:00:06 >>> stage 1.1: legacy release compatibility s ... 00:00:00 : 00:00:08 >>> stage 1.2: bootstrap tools ... 00:00:00 : 00:00:10 >>> stage 2.1: cleaning up the object tree ... 00:03:43 : 00:03:55 >>> stage 2.2: rebuilding the object tree ... 00:01:01 : 00:04:58 >>> stage 2.3: build tools ... 00:00:21 : 00:05:21 >>> stage 3: cross tools ... 00:00:04 : 00:05:28 >>> stage 3.1: recording compiler metadata ... 00:00:44 : 00:06:14 >>> stage 4.1: building includes ... 00:00:00 : 00:06:16 >>> stage 4.2: building libraries ... 00:00:19 : 00:06:37 Dan