Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] Support for generating a timeline graph
@ 2018-09-21 13:31 Thomas Petazzoni
  2018-09-21 13:31 ` [Buildroot] [PATCH 1/2] package/pkg-generic.mk: increase precision of timestamps Thomas Petazzoni
  2018-09-21 13:31 ` [Buildroot] [PATCH 2/2] support/scripts/graph-build-time: add support for timeline graphing Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2018-09-21 13:31 UTC (permalink / raw)
  To: buildroot

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(-)

-- 
2.14.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-10-10 19:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-21 13:31 [Buildroot] [PATCH 0/2] Support for generating a timeline graph Thomas Petazzoni
2018-09-21 13:31 ` [Buildroot] [PATCH 1/2] package/pkg-generic.mk: increase precision of timestamps Thomas Petazzoni
2018-09-22 17:56   ` Yann E. MORIN
2018-10-10 19:31   ` Thomas Petazzoni
2018-09-21 13:31 ` [Buildroot] [PATCH 2/2] support/scripts/graph-build-time: add support for timeline graphing Thomas Petazzoni
2018-09-22 13:47   ` Matthew Weber
2018-09-22 16:38     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox