From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH 2/5] buildstats: consider multiconfigs when collecting statistics.
Date: Fri, 12 Jan 2024 07:12:54 +0100 [thread overview]
Message-ID: <20240112061257.22241-3-ubely@ilbers.de> (raw)
In-Reply-To: <20240112061257.22241-1-ubely@ilbers.de>
When multiconfigs are used, statistics for the same package name but
from the different multiconfigs is collected into the same file.
This causes incorrect charts generated with pybootchartgui, when
only the most recent part of statistics is shown.
This patch adds custom multiconfig prefix to the file names that
hold statistics.
Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
meta/classes/buildstats.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
index 0de60520..b417929b 100644
--- a/meta/classes/buildstats.bbclass
+++ b/meta/classes/buildstats.bbclass
@@ -185,6 +185,8 @@ python run_buildstats () {
if bn is not None:
bsdir = os.path.join(d.getVar('BUILDSTATS_BASE'), bn)
taskdir = os.path.join(bsdir, d.getVar('PF'))
+ if d.getVar('BB_CURRENT_MC') != 'default':
+ taskdir = os.path.join(bsdir, d.getVar('BB_CURRENT_MC') + '_' + d.getVar('PF'))
if isinstance(e, bb.event.HeartbeatEvent) and bb.utils.to_boolean(d.getVar("BB_LOG_HOST_STAT_ON_INTERVAL")):
bb.utils.mkdirhier(bsdir)
write_host_data(os.path.join(bsdir, "host_stats_interval"), e, d, "interval")
--
2.20.1
next prev parent reply other threads:[~2024-01-12 6:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-12 6:12 [PATCH 0/5] Improve buildstats functionality Uladzimir Bely
2024-01-12 6:12 ` [PATCH 1/5] buildstats: Sync code base with openembedded-core 2022-04.15 Uladzimir Bely
2024-01-12 6:12 ` Uladzimir Bely [this message]
2024-01-12 6:12 ` [PATCH 3/5] buildstats: support of custom disk usage command Uladzimir Bely
2024-01-12 6:12 ` [PATCH 4/5] meta/bitbake.conf: Use custom disk usage command for buildstats Uladzimir Bely
2024-01-12 6:12 ` [PATCH 5/5] buildstats: Collect build statictics by default Uladzimir Bely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240112061257.22241-3-ubely@ilbers.de \
--to=ubely@ilbers.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox