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

Unified Diff: tools/telemetry/telemetry/web_perf/metrics/fast_metric.py

Issue 914083005: [Telemetry] Fix 'important' field of certain Values being non-boolean (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Ned's comment Created 5 years, 10 months 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/telemetry/telemetry/web_perf/metrics/fast_metric.py
diff --git a/tools/telemetry/telemetry/web_perf/metrics/fast_metric.py b/tools/telemetry/telemetry/web_perf/metrics/fast_metric.py
index 88b198918d969cc5f09a2e57c20c8f20f7b3816e..39d19a86b91e5b126f0605016e7b94b1a20fb2a0 100644
--- a/tools/telemetry/telemetry/web_perf/metrics/fast_metric.py
+++ b/tools/telemetry/telemetry/web_perf/metrics/fast_metric.py
@@ -82,20 +82,22 @@ class FastMetric(timeline_based_metric.TimelineBasedMetric):
results.AddValue(scalar.ScalarValue(
results.current_page, 'fast-' + event_stats.result_name, 'ms',
event_stats.thread_duration,
- event_stats.result_description))
+ description=event_stats.result_description))
results.AddValue(scalar.ScalarValue(
results.current_page,
'fast-' + event_stats.result_name + '_outside_idle', 'ms',
event_stats.thread_duration_outside_idle,
- event_stats.result_description + 'outside of idle notifications'))
+ description=(event_stats.result_description +
+ 'outside of idle notifications')))
results.AddValue(scalar.ScalarValue(
results.current_page, 'fast-total_garbage_collection', 'ms',
v8_stats.total_gc_thread_duration,
- 'Total thread duration of all garbage collection events'))
+ description='Total thread duration of all garbage collection events'))
results.AddValue(scalar.ScalarValue(
results.current_page, 'fast-total_garbage_collection_outside_idle',
'ms', v8_stats.total_gc_thread_duration_outside_idle,
- 'Total thread duration of all garbage collection events outside of idle'
- 'notifications'))
+ description=(
+ 'Total thread duration of all garbage collection events outside of '
+ 'idle notifications')))

Powered by Google App Engine
This is Rietveld 408576698