From patchwork Sat Dec 28 17:39:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 305580 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id BB8202C0086 for ; Sun, 29 Dec 2013 04:39:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3D9878BE4A; Sat, 28 Dec 2013 17:39:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I9r81Y81uyVp; Sat, 28 Dec 2013 17:39:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id A44848BD71; Sat, 28 Dec 2013 17:39:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D986C1BF994 for ; Sat, 28 Dec 2013 17:39:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D44118B813 for ; Sat, 28 Dec 2013 17:39:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PxuuzNp6J-tZ for ; Sat, 28 Dec 2013 17:39:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f170.google.com (mail-we0-f170.google.com [74.125.82.170]) by whitealder.osuosl.org (Postfix) with ESMTPS id AA1EB8BDCA for ; Sat, 28 Dec 2013 17:39:18 +0000 (UTC) Received: by mail-we0-f170.google.com with SMTP id w61so9142646wes.15 for ; Sat, 28 Dec 2013 09:39:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=iPKM6a2C5xXmMZGrnZAUP31pC0HTSWMOyCGWtEuABSw=; b=m0i/GV8HnDB6shaDweQMEqan4ukrpcXJb1KdOawdh87qAS701/mzD36YSWK5FG5Cgo 9D/UvYFIuK2LeNb5AF9SoDVlm5Z0jWvd/7Lf3/04LuU4pdnQhO2aILvIhaqTTpR+9RTV gnfQKLXsM0T438GX90utJ2VC+AooEUBcgApJFblcjC1/hxQoLdOAT0nCzJz0zyBB2o3G c13CpHShydGOtddOV2epzVaz8KfYJL/WA1Yb+aafyTz0OwPPjuPl7WB02xOL2cncVqew korHDuiDP7IFhjWO5sbwZxFNh3PWgZRZ15S2Rs3OaUrClWwf5EGEDDlt9RD0zvdwgKUo 1s/g== X-Received: by 10.180.126.38 with SMTP id mv6mr35184917wib.59.1388252357197; Sat, 28 Dec 2013 09:39:17 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id ly8sm7893603wjb.17.2013.12.28.09.39.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Dec 2013 09:39:16 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Sat, 28 Dec 2013 18:39:11 +0100 Message-Id: X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 2/4] Makefile: expose target 'graph-build' to generate the build-time graphs X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: "Yann E. MORIN" Generate the build-time graphs by calling: make graph-build This generates the graphs in $(O)/graphs/ It is possible to use the alternate color-scheme by setting the variable GRAPH_ALT=1 on the command line: make GRAPH_ALT=1 graph-build Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- Makefile | 12 ++++++++++++ docs/manual/common-usage.txt | 2 ++ 2 files changed, 14 insertions(+) diff --git a/Makefile b/Makefile index 3190541..98ca798 100644 --- a/Makefile +++ b/Makefile @@ -631,6 +631,17 @@ legal-info: dirs legal-info-clean legal-info-prepare $(TARGETS_LEGAL_INFO) \ show-targets: @echo $(TARGETS) +graph-build: $(O)/build/build-time.log + @install -d $(O)/graphs + $(foreach o,name build duration,./support/scripts/graph-build-time \ + --type=histogram --order=$(o) --input=$(<) \ + --output=$(O)/graphs/build.hist-$(o).pdf \ + $(if $(GRAPH_ALT),--alternate-colors)$(sep)) + $(foreach t,packages steps,./support/scripts/graph-build-time \ + --type=pie-$(t) --input=$(<) \ + --output=$(O)/graphs/build.pie-$(t).pdf \ + $(if $(GRAPH_ALT),--alternate-colors)$(sep)) + else # ifeq ($(BR2_HAVE_DOT_CONFIG),y) all: menuconfig @@ -843,6 +854,7 @@ endif @echo ' manual-pdf - build manual in PDF' @echo ' manual-text - build manual in text' @echo ' manual-epub - build manual in ePub' + @echo ' graph-build - generate graphs of the build times' @echo @echo 'Miscellaneous:' @echo ' source - download all sources needed for offline-build' diff --git a/docs/manual/common-usage.txt b/docs/manual/common-usage.txt index 1290dfc..7c76942 100644 --- a/docs/manual/common-usage.txt +++ b/docs/manual/common-usage.txt @@ -86,6 +86,8 @@ to +make+ or set in the environment: Note that the Buildroot download directory can also be set from the configuration interface, so through the Buildroot +.config+ file; this is the recommended way of setting it. +* +GRAPH_ALT+, if set and non-empty, to use an alternate color-scheme in + build-time graphs An example that uses config files located in the toplevel directory and in your $HOME: