diff --git a/tools_webrtc/perf/webrtc_dashboard_upload.py b/tools_webrtc/perf/webrtc_dashboard_upload.py index 7fc0f1a3cc..0c61400373 100644 --- a/tools_webrtc/perf/webrtc_dashboard_upload.py +++ b/tools_webrtc/perf/webrtc_dashboard_upload.py @@ -71,7 +71,15 @@ def _SendHistogramSet(url, histograms, oauth_token): oauth_token: An oauth token to use for authorization. """ headers = {'Authorization': 'Bearer %s' % oauth_token} - serialized = json.dumps(histograms.AsDicts(), indent=4) + + # TODO(https://crbug.com/1029452): HACKHACK + # Remove once we set bin bounds correctly in the proto writer. + dicts = histograms.AsDicts() + for d in dicts: + if 'name' in d: + d['allBins'] = [[1]] + + serialized = json.dumps(dicts, indent=4) if url.startswith('http://localhost'): # The catapult server turns off compression in developer mode.