Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Commit

Permalink
Add squash time vs concurrent builds
Browse files Browse the repository at this point in the history
  • Loading branch information
twaugh committed Feb 29, 2016
1 parent 27a7296 commit b721dba
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion visual.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit b721dba

Please sign in to comment.