All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Richard Purdie" <richard.purdie@linuxfoundation.org>
To: rustyhowell@gmail.com, yocto@lists.yoctoproject.org
Subject: Re: [yocto] Timing a recipe
Date: Wed, 17 Feb 2021 12:55:25 +0000	[thread overview]
Message-ID: <1228b15696d4afb425cee71a46f6657b55470f25.camel@linuxfoundation.org> (raw)
In-Reply-To: <633.1613504614588092041@lists.yoctoproject.org>

On Tue, 2021-02-16 at 11:43 -0800, rustyhowell@gmail.com wrote:
> "time bitbake recipe" is perfect for manual things. But I wanted to
> also measure the recipe times when building the entire image.  I
> ended up creating  a bbappend with new pre/post tasks for the main
> tasks (fetch, unpack, configure, compile, install, package).   The
> pre task drops a timestamp file and the post task reads the file,
> calculates the elapsed time and logs it to a file.  It's a bit clunky
> but it gives the information I want.  Thanks for the help.

As others have said, please look at the buildstats class and the data
it saves into TMPDIR/buildstats. It should do what you want and we have
tools like pybootchart which can show it visually.

Cheers,

Richard




  parent reply	other threads:[~2021-02-17 12:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-15 20:08 Timing a recipe rustyhowell
2021-02-15 20:12 ` [yocto] " Konrad Weihmann
2021-02-16  6:11   ` Yocto
2021-02-16 19:43     ` rustyhowell
2021-02-16 20:04       ` [yocto] " Khem Raj
2021-02-17 12:55       ` Richard Purdie [this message]
2021-02-17 11:32 ` Ross Burton

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=1228b15696d4afb425cee71a46f6657b55470f25.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=rustyhowell@gmail.com \
    --cc=yocto@lists.yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.