Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 79CFEE00C1E; Fri, 19 Feb 2016 06:49:22 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2394DE00C15 for ; Fri, 19 Feb 2016 06:49:20 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 19 Feb 2016 06:49:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,470,1449561600"; d="scan'208";a="889608380" Received: from cbyrne3-mobl2.ger.corp.intel.com (HELO lp.ger.corp.intel.com) ([10.252.31.22]) by orsmga001.jf.intel.com with ESMTP; 19 Feb 2016 06:49:17 -0800 From: Elliot Smith To: toaster@yoctoproject.org Date: Fri, 19 Feb 2016 14:49:08 +0000 Message-Id: <1455893353-15024-1-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [PATCH 0/5] Fix task buildstats gathering X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 14:49:22 -0000 Our buildstats gathering for tasks (CPU usage, Disk IO etc.) is broken, partly because of changes to how the data is organised in the buildstats files, and partly because tasks aren't being updated correctly anyway. Clean up the code which collects the buildstats (it had lots of duplication), collect the stats from the new stat file format (some line leaders had changed), and correctly identify the Task objects to update in BuildInfoHelper. To test: 1. Remove the content of the directories which cache tasks to see the best effects (I usually delete buildstats, tmp, sstate-cache, and cache, just to be safe). 2. Run a build against a local Yocto (as one patch is for toaster.bbclass). 3. When the build finishes, view the "Tasks" page for the build and enable the "Disk IO" and "CPU usage" columns. Note that some CPU usage percentages are > 100, as discussed in bug 8842. Changes since c0fe43b (toaster-next) are in git://git.yoctoproject.org/poky-contrib, elliot/toaster/build_data-8842 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=elliot/toaster/build_data-8842 Related bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=8842 NOTE: The first commit in this patch series is for oe-core. Elliot Smith (5): toaster.bbclass: improve how we gather buildstats for Toaster toaster: elapsed time for a task is calculated in toaster.bbclass toaster: when updating task stats, task must exist toaster: use a more straightforward query to find tasks to update toaster: clarify the units used for buildstats bitbake/lib/bb/ui/buildinfohelper.py | 49 +++++++-------------- bitbake/lib/toaster/orm/models.py | 7 +++ bitbake/lib/toaster/toastergui/views.py | 4 +- meta/classes/toaster.bbclass | 76 ++++++++++++++++++++++----------- 4 files changed, 77 insertions(+), 59 deletions(-) -- Elliot Smith Software Engineer Intel OTC --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.