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

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

Issue 809393002: Added support for improvement_direction to relevant values, which is propogated to chartjson. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
Index: tools/perf/metrics/webrtc_stats.py
diff --git a/tools/perf/metrics/webrtc_stats.py b/tools/perf/metrics/webrtc_stats.py
index 4a787dd1afa16d87a8e5a9cda6d7a0cb689ad6ec..74d7bdd683b71463bf34661bb031d1f717650da4 100644
--- a/tools/perf/metrics/webrtc_stats.py
+++ b/tools/perf/metrics/webrtc_stats.py
@@ -14,18 +14,22 @@ INTERESTING_METRICS = {
'packetsReceived': {
'units': 'packets',
'description': 'Packets received by the peer connection',
+ 'higher_is_better': False,
},
'packetsSent': {
'units': 'packets',
'description': 'Packets sent by the peer connection',
+ 'higher_is_better': False,
},
'googDecodeMs': {
'units': 'ms',
'description': 'Time spent decoding.',
+ 'higher_is_better': False,
},
'googMaxDecodeMs': {
'units': 'ms',
'description': 'Maximum time spent decoding one frame.',
+ 'higher_is_better': False,
},
# TODO(phoglund): Add much more interesting metrics.
}
@@ -98,4 +102,5 @@ class WebRtcStatisticsMetric(Metric):
results.current_page, trace_name,
INTERESTING_METRICS[general_name]['units'], values,
description=INTERESTING_METRICS[general_name]['description'],
- important=False))
+ important=False, higher_is_better=INTERESTING_METRICS[
+ general_name]['higher_is_better']))

Powered by Google App Engine
This is Rietveld 408576698