generic-poky/bitbake/lib/bb/ui
Patrick Ohly 083365143e bitbake: cooker process: fire heartbeat event at regular time intervals
The intended usage is for recording current system statistics from
/proc in buildstats.bbclass during a build and for improving the
BB_DISKMON_DIRS implementation.

All other existing hooks are less suitable because they trigger at
unpredictable rates: too often can be handled by doing rate-limiting
in the event handler, but not often enough (for example, when there is
only one long-running task) cannot because the handler does not get
called at all.

The implementation of the new heartbeat event hooks into the cooker
process event queue. The process already wakes up every 0.1s, which is
often enough for the intentionally coarse 1s delay between
heartbeats. That value was chosen to keep the overhead low while still
being frequent enough for the intended usage.

If necessary, BB_HEARTBEAT_EVENT can be set to a float specifying
the delay in seconds between these heartbeat events.

(Bitbake rev: 7cf22ea057d28c54bd98dc1ab7a43402a29ff1f5)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-12-07 10:42:22 +00:00
..
icons bitbake: Add missing file that went out of sync 2013-06-12 13:13:21 +01:00
__init__.py Formatting cleanups 2010-07-02 15:41:32 +01:00
buildinfohelper.py bitbake: toaster: buildinfohelper Clarify log message for build history 2016-11-30 15:48:10 +00:00
depexp.py bitbake: depexp: Close UI with error message on NoProvider event 2016-10-11 08:29:49 +01:00
knotty.py bitbake: cooker process: fire heartbeat event at regular time intervals 2016-12-07 10:42:22 +00:00
ncurses.py bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
toasterui.py bitbake: cooker process: fire heartbeat event at regular time intervals 2016-12-07 10:42:22 +00:00
uievent.py bitbake: bitbake: fix wrong usage of format_exc 2016-06-16 11:51:26 +01:00
uihelper.py bitbake: uihelper: use elif instead of repeated if 2016-09-21 21:58:05 +01:00