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

Unified Diff: tracing/tracing/metrics/system_health/responsiveness_metric.html

Issue 2258583003: Modernize DiagnosticMap to subclass ES6 Map. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: fix longTasksMetric and Composition Created 4 years, 4 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: tracing/tracing/metrics/system_health/responsiveness_metric.html
diff --git a/tracing/tracing/metrics/system_health/responsiveness_metric.html b/tracing/tracing/metrics/system_health/responsiveness_metric.html
index faef42ffc0ecb660120785bb148211901414f624..36d336ec1435ae7eaae68cf01f0d23b80ada4fc4 100644
--- a/tracing/tracing/metrics/system_health/responsiveness_metric.html
+++ b/tracing/tracing/metrics/system_health/responsiveness_metric.html
@@ -91,9 +91,8 @@ tr.exportTo('tr.metrics.sh', function() {
ue.start, ue.end))
return;
- var sampleDiagnostic = new tr.v.d.RelatedEventSet([ue]);
- var sampleDiagnosticMap =
- new tr.v.d.DiagnosticMap({relatedEvents: sampleDiagnostic});
+ var sampleDiagnosticMap = tr.v.d.DiagnosticMap.fromObject(
+ {relatedEvents: new tr.v.d.RelatedEventSet([ue])});
// Responsiveness is not defined for Idle or Startup expectations.
if (ue instanceof tr.model.um.IdleExpectation) {
« no previous file with comments | « tracing/tracing/metrics/system_health/long_tasks_metric.html ('k') | tracing/tracing/metrics/tracing_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698