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

Unified Diff: chrome/common/page_load_metrics/page_load_metrics_constants.h

Issue 2904533002: Factor management of metrics updates into its own class. (Closed)
Patch Set: address comments Created 3 years, 7 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
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/renderer/page_load_metrics/page_timing_metrics_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/page_load_metrics/page_load_metrics_constants.h
diff --git a/chrome/common/page_load_metrics/page_load_metrics_constants.h b/chrome/common/page_load_metrics/page_load_metrics_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..624231bf91c83634e2934648e47d6cbf8abf0082
--- /dev/null
+++ b/chrome/common/page_load_metrics/page_load_metrics_constants.h
@@ -0,0 +1,17 @@
+// Copyright 2017 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.
+
+#ifndef CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_CONSTANTS_H_
+#define CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_CONSTANTS_H_
+
+namespace page_load_metrics {
+
+// Amount of time to delay dispatch of metrics. This allows us to batch and send
+// fewer cross-process updates, given that cross-process updates can be
+// expensive.
+const int kBufferTimerDelayMillis = 1000;
+
+} // namespace page_load_metrics
+
+#endif // CHROME_COMMON_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_CONSTANTS_H_
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/renderer/page_load_metrics/page_timing_metrics_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698