Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: tools/perf/metrics/webrtc_stats.py

Issue 729643003: Relax an overly sensentive check in webrtc_stats.py. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/metrics/webrtc_stats.py
diff --git a/tools/perf/metrics/webrtc_stats.py b/tools/perf/metrics/webrtc_stats.py
index c1995773283c007e56356d1e3586a7267981c042..4a787dd1afa16d87a8e5a9cda6d7a0cb689ad6ec 100644
--- a/tools/perf/metrics/webrtc_stats.py
+++ b/tools/perf/metrics/webrtc_stats.py
@@ -37,7 +37,10 @@ def GetReportKind(report):
if 'googFrameRateSent' in report or 'googFrameRateReceived' in report:
return 'video'
- logging.error('Did not recognize report batch: %s.', report.keys())
+ logging.debug('Did not recognize report batch: %s.', report.keys())
+ # There are other kinds of reports, such as bwestats, which we don't care
+ # about here. For these cases just return 'unknown' which will ignore the
+ # report
return 'unknown'
@@ -56,6 +59,8 @@ def SortStatsIntoTimeSeries(report_batches):
for stat_name, value in report.iteritems():
if stat_name not in INTERESTING_METRICS:
continue
+ if GetReportKind(report) == 'unknown':
+ continue
full_stat_name = DistinguishAudioAndVideo(report, stat_name)
time_series.setdefault(full_stat_name, []).append(float(value))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698