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

Unified Diff: tracing/tracing/metrics/system_health/webview_startup_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/webview_startup_metric.html
diff --git a/tracing/tracing/metrics/system_health/webview_startup_metric.html b/tracing/tracing/metrics/system_health/webview_startup_metric.html
index 55333769e13e1610c29ef3b349b67beb04fad123..749c057b75a43896f49845a0caad20cb2906375e 100644
--- a/tracing/tracing/metrics/system_health/webview_startup_metric.html
+++ b/tracing/tracing/metrics/system_health/webview_startup_metric.html
@@ -34,16 +34,16 @@ tr.exportTo('tr.metrics.sh', function() {
// entered (via android.os.Trace.beginSection) when WebView is started
// up. This value is defined in TelemetryActivity.java.
if (slice.title === 'WebViewStartupInterval') {
- startupWallHist.add(slice.duration);
- startupCPUHist.add(slice.cpuDuration);
+ startupWallHist.addSample(slice.duration);
+ startupCPUHist.addSample(slice.cpuDuration);
}
// WebViewBlankUrlLoadInterval is the title of the section of code
// that is entered (via android.os.Trace.beginSection) when WebView
// is started up. This value is defined in TelemetryActivity.java.
if (slice.title === 'WebViewBlankUrlLoadInterval') {
- loadWallHist.add(slice.duration);
- loadCPUHist.add(slice.cpuDuration);
+ loadWallHist.addSample(slice.duration);
+ loadCPUHist.addSample(slice.cpuDuration);
}
}
« no previous file with comments | « tracing/tracing/metrics/system_health/responsiveness_metric.html ('k') | tracing/tracing/metrics/tracing_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698