Codeship3 min readtutorialintermediate
Yocto Build Tutorial: BitBake Build Visualization with ElectricInsight
Summary
A step‑by‑step tutorial showing how to convert Yocto BitBake buildstats into ElectricInsight annotation files (using the bb2anno utility) and then visualize build timelines, parallelism, and task‑type heat maps to spot bottlenecks.
- BitBake stores per‑task timing data in ${TOPDIR}/tmp/buildstats; each task file contains start/end timestamps, CPU usage, I/O stats, etc.
- The Yocto‑provided buildstats‑plot.sh script can generate simple aggregate graphs, but it lacks drill‑down insight.
- ElectricAccelerator 11.0 ships a conversion tool (bb2anno) that turns buildstats + build logs into an ElectricInsight‑compatible .anno file:
- ```
BitBake builds for embedded Linux can run for hours; without fine‑grained visibility it’s hard to justify changes to recipes or concurrency settings. ElectricInsight’s visual reports turn raw timestamps into actionable data (e.g., identifying long‑running tasks, spotting parallelism gaps), enabling…
5/10


