diff options
author | Sakib Sajal <sakib.sajal@windriver.com> | 2020-11-10 10:59:15 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-17 11:28:13 +0000 |
commit | d068fbcde2c5dd159ab903e9696ef900514ce866 (patch) | |
tree | 8655f402c10c4ac447d3b97b1af954859e8a33ac /meta/classes/package_pkgdata.bbclass | |
parent | 75c779b628f31f1376baedd968eafcfe3c188846 (diff) | |
download | poky-d068fbcde2c5dd159ab903e9696ef900514ce866.tar.gz |
buildstats.bbclass: add functionality to collect build system stats
There are a number of timeout and hang defects where
it would be useful to collect statistics about what
is running on a build host when that condition occurs.
This adds functionality to collect build system stats
on a regular interval and/or on task failure. Both
features are disabled by default.
To enable logging on a regular interval, set:
BB_HEARTBEAT_EVENT = "<interval>"
BB_LOG_HOST_STAT_ON_INTERVAL = <boolean>
Logs are stored in ${BUILDSTATS_BASE}/<build_name>/host_stats
To enable logging on a task failure, set:
BB_LOG_HOST_STAT_ON_FAILURE = "<boolean>"
Logs are stored in ${BUILDSTATS_BASE}/<build_name>/build_stats
The list of commands, along with the desired options, need
to be specified in the BB_LOG_HOST_STAT_CMDS variable
delimited by ; as such:
BB_LOG_HOST_STAT_CMDS = "command1 ; command2 ;... ;"
(From OE-Core rev: edb7098e9e0a8978568a45057c1c3ad2c6cacd67)
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_pkgdata.bbclass')
0 files changed, 0 insertions, 0 deletions