Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3330AE00C37; Fri, 18 Dec 2015 01:21:48 -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: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.115 listed in list.dnswl.org] Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4FFF1E007B4 for ; Fri, 18 Dec 2015 01:21:44 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 18 Dec 2015 01:21:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,445,1444719600"; d="scan'208";a="876315348" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by fmsmga002.fm.intel.com with ESMTP; 18 Dec 2015 01:21:43 -0800 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.163]) by IRSMSX101.ger.corp.intel.com ([169.254.1.236]) with mapi id 14.03.0248.002; Fri, 18 Dec 2015 09:21:17 +0000 From: "Barros Pena, Belen" To: "toaster@yoctoproject.org" Thread-Topic: [OE-core] [PATCH 6/7] toaster: Update for buildstats changes Thread-Index: AQHROXVy7ZBNK8RZ1kejZvi1bQRPug== Date: Fri, 18 Dec 2015 09:21:16 +0000 Message-ID: References: <1450364093.13505.210.camel@linuxfoundation.org> In-Reply-To: <1450364093.13505.210.camel@linuxfoundation.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.5.9.151119 x-originating-ip: [10.254.53.34] MIME-Version: 1.0 Cc: "Purdie, Richard" , "Bartosh, Eduard" Subject: FW: [OE-core] [PATCH 6/7] toaster: Update for buildstats changes 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, 18 Dec 2015 09:21:48 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable I applied the buildstats series on top of toaster-next, ran a build, and checked the build stats info. I can see time per task coming in. I cannot see cpu usage or disk i/o data in the UI because of this https://bugzilla.yoctoproject.org/show_bug.cgi?id=3D8571 But there is data for both in the database, and it looks sane. So I guess, from the UI standpoint, the patches are ok: things were as broken as they were before ;) Cheers Bel=E9n On 17/12/2015 14:54, "openembedded-core-bounces@lists.openembedded.org on behalf of Richard Purdie" wrote: >This updates the toaster class to use the new data format from buildstats. >This does mean it will no longer read IO data from older builds, however >since that data is completely useless anyway, I don't consider that to be >an issue. > >Signed-off-by: Richard Purdie > >diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass >index d63cff5..7af495e 100644 >--- a/meta/classes/toaster.bbclass >+++ b/meta/classes/toaster.bbclass >@@ -199,8 +199,6 @@ python toaster_collect_task_stats() { > def _read_stats(filename): > cpu_usage =3D 0 > disk_io =3D 0 >- startio =3D '0' >- endio =3D '0' > started =3D '0' > ended =3D '0' > pn =3D '' >@@ -215,11 +213,11 @@ python toaster_collect_task_stats() { > if "CPU usage" in statinfo: > cpu_usage =3D str(statinfo["CPU usage"]).strip('% \n\r') >=20 >- if "EndTimeIO" in statinfo: >- endio =3D str(statinfo["EndTimeIO"]).strip('% \n\r') >+ if "IO write_bytes" in statinfo: >+ disk_io =3D disk_io + str(statinfo["IO write_bytes"]).strip('= % >\n\r') >=20 >- if "StartTimeIO" in statinfo: >- startio =3D str(statinfo["StartTimeIO"]).strip('% \n\r') >+ if "IO read_bytes" in statinfo: >+ disk_io =3D disk_io + str(statinfo["IO read_bytes"]).strip('% >\n\r') >=20 > if "Started" in statinfo: > started =3D str(statinfo["Started"]).strip('% \n\r') >@@ -227,8 +225,6 @@ python toaster_collect_task_stats() { > if "Ended" in statinfo: > ended =3D str(statinfo["Ended"]).strip('% \n\r') >=20 >- disk_io =3D int(endio) - int(startio) >- > elapsed_time =3D float(ended) - float(started) >=20 > cpu_usage =3D float(cpu_usage) > > >--=20 >_______________________________________________ >Openembedded-core mailing list >Openembedded-core@lists.openembedded.org >http://lists.openembedded.org/mailman/listinfo/openembedded-core