Generate Build Statistics in Yocto
Yocto build system allows you to collect build information per task and image.
The data generated can be used to Identify areas of build times optimization, when new recipes are added to the system.
To enable collection of build statistics, you need to inherit buildstats class by adding it to USER_CLASSES in your conf/local.conf or machine.conf
By default the local.conf file generated by the oe-initbuild-env script will have the buildstats in USER_CLASSES
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
The data generated can be used to Identify areas of build times optimization, when new recipes are added to the system.
To enable collection of build statistics, you need to inherit buildstats class by adding it to USER_CLASSES in your conf/local.conf or machine.conf
By default the local.conf file generated by the oe-initbuild-env script will have the buildstats in USER_CLASSES
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
By default, the location of statistics is stored in build/tmp/buildstatistics folder. You can change the location with BUILDSTATS_BASE variable.
For each and every build, a new folder with the timestamp will be created in build/tmp/buildstatistics
Each folder contains:
build_stats file:
- host system information,
- root filesystem location,
- root filesystem size,
- build time
- Average CPU Usage
Comments
Post a Comment