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

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

Issue 2283213002: Rename Histogram.add() to addSample(). (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: rebase 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/long_tasks_metric.html
diff --git a/tracing/tracing/metrics/system_health/long_tasks_metric.html b/tracing/tracing/metrics/system_health/long_tasks_metric.html
index d12818d50d6f1cbf53b5b779de00cc74ad388d19..5b4000028c9431baa692ffc39725f592521153a4 100644
--- a/tracing/tracing/metrics/system_health/long_tasks_metric.html
+++ b/tracing/tracing/metrics/system_health/long_tasks_metric.html
@@ -82,8 +82,8 @@ tr.exportTo('tr.metrics.sh', function() {
iterateRendererMainThreads(model, function(thread) {
iterateLongTopLevelTasksOnThreadInRange(
thread, rangeOfInterest, function(task) {
- longTaskNumeric.add(task.duration, tr.v.d.DiagnosticMap.fromObject({
- relatedEvents: new tr.v.d.RelatedEventSet([task])}));
+ longTaskNumeric.addSample(task.duration,
+ {relatedEvents: new tr.v.d.RelatedEventSet([task])});
slices.push(task);
slices.addEventSet(task.descendentSlices);
});
« no previous file with comments | « tracing/tracing/metrics/system_health/loading_metric.html ('k') | tracing/tracing/metrics/system_health/memory_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698