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

Unified Diff: ui/file_manager/file_manager/background/js/metrics_start.js

Issue 2585193002: Files App: Add metrics for background performance. (Closed)
Patch Set: Update histograms.xml. Created 4 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
« no previous file with comments | « ui/file_manager/file_manager/background/js/background_scripts.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/background/js/metrics_start.js
diff --git a/ui/file_manager/file_manager/background/js/metrics_start.js b/ui/file_manager/file_manager/background/js/metrics_start.js
new file mode 100644
index 0000000000000000000000000000000000000000..e3f75ca19f16c40202cd5aa3bd9b5a38ff89f8a5
--- /dev/null
+++ b/ui/file_manager/file_manager/background/js/metrics_start.js
@@ -0,0 +1,11 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview Metrics calls to start measurement of script loading. Include
+ * this as the first script in background_scripts.js (i.e. after the common
+ * scripts that define the metrics namespace).
+ */
+
+metrics.startInterval('Load.BackgroundScript');
« no previous file with comments | « ui/file_manager/file_manager/background/js/background_scripts.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698