From patchwork Sun Oct 13 23:11:26 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: 283128 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 9603D2C035F for ; Mon, 14 Oct 2013 10:12:01 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3A65832D06; Sun, 13 Oct 2013 23:12:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R8Wv2zWvxRQk; Sun, 13 Oct 2013 23:11:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 422F832BF4; Sun, 13 Oct 2013 23:11:43 +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 ED5FB1BFA58 for ; Sun, 13 Oct 2013 23:11:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E88858B07A for ; Sun, 13 Oct 2013 23:11:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3AXOey3HU5pt for ; Sun, 13 Oct 2013 23:11:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4D7008B49B for ; Sun, 13 Oct 2013 23:11:37 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id ez12so525161wid.9 for ; Sun, 13 Oct 2013 16:11:35 -0700 (PDT) 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 :in-reply-to:references; bh=zfIpjXrhgYN6k1SiPTKuwCeG0Obaj2nH7TvUM46ajK4=; b=bwbC9nM9XBb4ur++Q4BQOdi3XrDm/XALTBfYWS4rD2ZkgN1YR/U7ZKJrjCOg1RbQyG yxO+J2rYlDFT44pEv9Ojp9iWfzttGWwK6AZooiuS3wr8dixkpCNyrZH7e5ab9iQ/5eOB aN/4QNlaJV7xisWrOsOUU9eir2GtGDUN/kEoq/5+xQnJvKrhbiLbwwOWmM9O5hjfGC3u qMx/ytYZY+GNRAX8TWBM+yoKe56Clij5uVuU89ySfw8zUmxaDu1kTJ2eUZ6E8V9MFZpW NfRlv05emjWLcMSVKSOdC6Y8K1ujfEtdFLa6Eru799X47/FVdg5m99qzMB5SEL1JZjod g5BA== X-Received: by 10.180.10.8 with SMTP id e8mr12054215wib.65.1381705895871; Sun, 13 Oct 2013 16:11:35 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id ft19sm28495163wic.5.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 13 Oct 2013 16:11:35 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Mon, 14 Oct 2013 01:11:26 +0200 Message-Id: <5e5e05deee119ee4f15b0b9f7b42ba12d9ce82e3.1381705600.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: In-Reply-To: References: Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 2/4] pkg-infra: add hook to log timing of steps 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" Signed-off-by: "Yann E. MORIN" --- package/pkg-generic.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index c4c7f8a..162c9ed 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -36,6 +36,12 @@ define step_end $(foreach hook,$(STEP_HOOKS),$(call $(hook),end,$(1));) endef +# Time steps +define step_time + printf "%s:%-5.5s:%-20.20s: %s\n" "$$(date +%s)" "$(1)" "$(2)" "$($(PKG)_NAME)" >>"$(BUILD_DIR)/build.log" +endef +STEP_HOOKS += step_time + ################################################################################ # Implicit targets -- produce a stamp file for each step of a package build ################################################################################