Display targets and job times in a sunburst chart.
sunburst.py is a Python script that generates a sunburst view of a build. In a sunburst view, triggered targets or Makefiles appear as wedges distributed radially around wedges representing parent Makefiles. Interior wedges represent Makefiles and edge (or leaf) wedges represent triggered targets. The circle in the center of the diagram represents the top level Makefile. Wedges are colored according to their parent Makefile, so that sibling makefiles/targets share the same color.
Features of the sunburst view include:
protovis-r3.2.json the web server with the HTML output)
sunburst.py [ --help ] [ -u URL ] [ -o OUTPUT ] [ -t TEMPLATE ] filename.xml
Sunburst Report: writing output to blexample_sunburst.html
The following variations produce different style graphs and are included in the download package. They have the same requirements as sunburst.py.
The logic for the report is defined in function
SunburstReport.run() which calls mutually recursive functions
value() to build up a recursive data
structure which is assigned to variable data.
The values for elements corresponding to a Makefile recurse to lower level
elements. Multivariate build data is stored for each leaf target element:
stored data includes job duration, a URL fragment linking to detailed log
data, and job exit code. The standard Python json library is used to convert
template is read in and variable parts are substituted into the template.