Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 1C97EE00D49; Fri, 19 Feb 2016 06:49:37 -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 C5132E00D3F for ; Fri, 19 Feb 2016 06:49:27 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 19 Feb 2016 06:49:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,470,1449561600"; d="scan'208";a="889608486" 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:26 -0800 From: Elliot Smith To: toaster@yoctoproject.org Date: Fri, 19 Feb 2016 14:49:13 +0000 Message-Id: <1455893353-15024-6-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1455893353-15024-1-git-send-email-elliot.smith@intel.com> References: <1455893353-15024-1-git-send-email-elliot.smith@intel.com> Subject: [PATCH 5/5] toaster: clarify the units used for buildstats 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:37 -0000 The disk IO value for a task in buildstats is measured in bytes rather than ms. Modify the "all builds" and "project builds" tables to reflect this. Add some notes to the Build model to make it clear which units are used for each buildstats property. [YOCTO #8842] Signed-off-by: Elliot Smith --- bitbake/lib/toaster/orm/models.py | 7 +++++++ bitbake/lib/toaster/toastergui/views.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index ab6940f..255c586 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -712,9 +712,16 @@ class Task(models.Model): work_directory = models.FilePathField(max_length=255, blank=True) script_type = models.IntegerField(choices=TASK_CODING, default=CODING_NA) line_number = models.IntegerField(default=0) + + # in bytes disk_io = models.IntegerField(null=True) + + # as a percentage of the time taken by the build which triggered this task cpu_usage = models.DecimalField(max_digits=8, decimal_places=2, null=True) + + # in seconds elapsed_time = models.DecimalField(max_digits=8, decimal_places=2, null=True) + sstate_result = models.IntegerField(choices=SSTATE_RESULT, default=SSTATE_NA) message = models.CharField(max_length=240) logfile = models.FilePathField(max_length=255, blank=True) diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 13489af..6efa131 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -1171,8 +1171,8 @@ def tasks_common(request, build_id, variant, task_anchor): tc_cache['hidden']='1' tc_diskio={ - 'name':'Disk I/O (ms)', - 'qhelp':'Number of miliseconds the task spent doing disk input and output', + 'name':'Disk I/O (bytes)', + 'qhelp':'Number of bytes written to and read from the disk during the task', 'orderfield': _get_toggle_order(request, "disk_io", True), 'ordericon':_get_toggle_order_icon(request, "disk_io"), 'orderkey' : 'disk_io', -- 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.