Hack in allBins into perf results.
Let's see if this makes the perf dashboard accept the upload. The proper fix requires some catapult work + a couple rolls. Tbr: mbonadei@webrtc.org Bug: chromium:1029452 Change-Id: I5fb94a08784620a423c4bd7a5bb6dc7f7c05cdc9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/170363 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Patrik Höglund <phoglund@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30786}
This commit is contained in:
committed by
Commit Bot
parent
fcafbfdbf0
commit
85037bca98
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user