]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
monitordisk: add event
authorPatrick Ohly <patrick.ohly@intel.com>
Tue, 29 Nov 2016 16:47:45 +0000 (17:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Dec 2016 10:40:56 +0000 (10:40 +0000)
commitf065ac17d0031dca6309ddbff18c8792630de865
treeb6542fedbc351df572fa840f8a6a58aec7d5eca6
parent3c943e989964382c0b819d92de26a0c914ebed33
monitordisk: add event

The current disk usage is interesting and may be worth logging over
time as part of the build statistics. Instead of re-implementing the
code and the configuration option (BB_DISKMON_DIRS), the information
gathered by monitordisk.py is made available to buildstats.bbclass via
a new event.

This has pros and cons:
- there is already a useful default configuration for "interesting" directories
- no code duplication
- on the other hand, users cannot configure recording separately from
  monitoring (probably not that important)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/event.py
lib/bb/monitordisk.py