Skip to content

Support for generating a timeline graph

Thomas Petazzoni buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2package/pkg-generic.mk: increase precision of timestampspackage/pkg-generic.mk support/scripts/graph-build-time+2 -21 reply
1/2package/pkg-generic.mk: increase precision of timestamps+0 -00 replies
2/2support/scripts/graph-build-time: add support for timeline graphingMakefile support/scripts/graph-build-time+72 -11 reply
2/2support/scripts/graph-build-time: add support for timeline graphing+0 -00 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchYann E. MORIN
1/2A-b
1/2A-b
2/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/2] Support for generating a timeline graph

Hello,

As part of the work on top-level parallel build, I found that it would be interesting to be able to draw a timeline of the build, to see how packages are being built in parallel or not. Not only it generates nice graphs that are interesting to look at, but it also allows to visually see which package was built in parallel to what other packages, or before/after this or that other packages.

You can see one timeline graph for a non-parallel build at:

https://bootlin.com/~thomas/timeline-no-parallel.png
https://bootlin.com/~thomas/timeline-no-parallel.pdf

And you can see the timeline graph for the same build, with with parallel build enabled at:

https://bootlin.com/~thomas/timeline-parallel.png
https://bootlin.com/~thomas/timeline-parallel.pdf

This patch series is pretty simple:

- The first patch adds sub-second precision to the timestamps we keep in build-time.log.

- The second patch adds support in the graph-build-time script to generate such a timeline. The whole thing is not perfect yet (the layout of the graph could be improved, some hardcoded values could be removed), but it's a good start, and follow-up patches can improve the graph layout.

To test this, just do a build, run "make graph-build", and enjoy the graph in output/graphs/build.timeline.pdf.

Thanks,

Thomas

Thomas Petazzoni (2):
package/pkg-generic.mk: increase precision of timestamps support/scripts/graph-build-time: add support for timeline graphing

 Makefile                         |  2 ++
 package/pkg-generic.mk           |  2 +-
 support/scripts/graph-build-time | 73 ++++++++++++++++++++++++++++++++++++++--
 3 files changed, 74 insertions(+), 3 deletions(-)
Signature · 1 line
2.14.4