diff --git a/visual.py b/visual.py index d8f065e..45b1031 100644 --- a/visual.py +++ b/visual.py @@ -1,5 +1,5 @@ from bokeh.plotting import * -from bokeh.charts import Histogram, TimeSeries +from bokeh.charts import Histogram, TimeSeries, BoxPlot from bokeh.models import Span, NumeralTickFormatter, AdaptiveTicker, Range1d from collections import namedtuple import datetime @@ -84,6 +84,15 @@ def run(metrics_file, concurrent_file): s3.renderers.extend([start]) charts.append(s3) + merged = metrics.merge(concurrent, + left_on=['completion'], right_on=['timestamp'], + sort=False) + sc = BoxPlot(merged, values='plugin_squash', label='nbuilds', + width=800, height=350, title='squash time vs concurrent builds') + sc._yaxis.formatter = NumeralTickFormatter(format="00:00:00") + sc._yaxis.ticker = AdaptiveTicker(mantissas=[1,3,6]) + charts.append(sc) + valid = ~np.isnan(metrics['upload_size_mb']) hsize = MyHistogram(metrics['upload_size_mb'][valid], bins=10, title='Upload size',