From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7007434304848396288 X-Received: by 2002:ac2:46d3:: with SMTP id p19mr9264219lfo.689.1631545450278; Mon, 13 Sep 2021 08:04:10 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:58c8:: with SMTP id u8ls468857lfo.3.gmail; Mon, 13 Sep 2021 08:04:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz68s54A+3r9vqUawZMX2x5mdJ/QMjK8rA94wQ648It+0tGt6rwViPZkL2XY87I1GHvuKdO X-Received: by 2002:a05:6512:2296:: with SMTP id f22mr9033646lfu.547.1631545447772; Mon, 13 Sep 2021 08:04:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631545447; cv=none; d=google.com; s=arc-20160816; b=SVYXalHnoM3MdYUX3k8uuaEIsLtjqPRnFk1pH4ih0G5fAgsYrrxIgWElJusHbZalSh NRcwG8H5TlNfmBz/iZ+wlAp99VyVyYqZPfH92c3wz7DOEZkEzQYJQBDzh6YljUAMgm0d owcWbX5jP+2yV71zwiosiw6ZZ7pxfpxHj99oDtTt5f7xurRYdkJmJop571Qrt75F1JGv JT+CyPxXkm3HUqkjnxoRpJIelIKEv9kLon56p7jLs+FYIVF3nYpXg6OrOqz8KdphmLV3 EB8YokQJ07sxsozBtvqqCxpWolC+sYWs8gMUzNRIyH/K3rSHaVItYngM3/Hu38VUEMbE j+hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=ZMACVm/490KTOMFFoNjgXwnloCXxzHB2uiamyH5GgXM=; b=JOXYE4T/G5sK3NCvW4R8/k4yfXSpX/R/zsCookTWEbF0UqSqZgpiZkWidUGf1uF83F XOhkcSX4kx+AynwYkBV3xOV8puv8+LfzoEBGsscoVd0shehMHmuAkzroa9h6gW3nc4Cb fs4QeMPi9DA0Ot54EKW1GPg8+29YHMnt2+LrFUfL/b3J0WMHpRCpxfScKbJz1mspxfyB 76qwPIMtuOhCy9BtDOwTZVre3Wu9Xz/tDeE9IkwEPxQ/x70TaIKGozkAlJ8WQA8n31Q9 qZAgxyW62fNWwuL/G2vfpOX9AYFIQysoTuielIMKXB7ncRKg+diiVrr2l/RRAnQNrn2f GzJQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id f16si817934ljj.3.2021.09.13.08.04.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Sep 2021 08:04:07 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 18DF3tTQ009770 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 13 Sep 2021 17:04:04 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH 4/4] doc: Add buildstats section in user manual Date: Mon, 13 Sep 2021 17:03:55 +0200 Message-Id: <20210913150355.9973-5-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210913150355.9973-1-ubely@ilbers.de> References: <20210913150355.9973-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: e3wJQT4fYaF0 Signed-off-by: Uladzimir Bely --- doc/user_manual.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/user_manual.md b/doc/user_manual.md index 1da0e9d..94c65ae 100644 --- a/doc/user_manual.md +++ b/doc/user_manual.md @@ -17,6 +17,7 @@ Copyright (C) 2016-2019, ilbers GmbH - [Add a New Image](#add-a-new-image) - [Add a New Image Type](#add-a-new-image-type) - [Add a Custom Application](#add-a-custom-application) + - [Build statistics collection](#build-statistics-collection) - [Enabling Cross-compilation](#isar-cross-compilation) - [Create an ISAR SDK root filesystem](#create-an-isar-sdk-root-filesystem) - [Create a containerized Isar SDK root filesystem](#create-a-containerized-isar-sdk-root-filesystem) @@ -842,6 +843,24 @@ Such single debs can be included if need be. You just need to write a recipe that just fetches those debs to its `WORKDIR` and deploys them. They can then be installed via `IMAGE_INSTALL`. Have a look at `prebuilt-deb`. +--- + +## Build statistics collection + +While isar is building the system, build statistics is collected in `tmp/buildstats/` directory. This functionality is implemented in `buildstats` class, that is enabled by setting `USER_CLASSES ?= "buildstats"` in `local.conf`. + +The collected statistics can be represented visually by using `pybootchartgui.py` script (borrowed from OpenEmbedded): +``` +../scripts/pybootchartgui/pybootchartgui.py tmp/buildstats/20210911054429/ -f pdf -o ~/buildstats.pdf +``` + +NOTE: `python3-cairo` package is required for `pybootchartgui.py` to work: +``` +sudo apt-get install python3-cairo +``` + +--- + ## Isar Cross-compilation ### Motivation -- 2.20.1