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

Unified Diff: chrome/browser/metrics/time_ticks_experiment_win.h

Issue 13583007: Create a field trial to test if we can detect good QPC implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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: chrome/browser/metrics/time_ticks_experiment_win.h
diff --git a/chrome/browser/metrics/time_ticks_experiment_win.h b/chrome/browser/metrics/time_ticks_experiment_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..d89b6750e31774ea6b1f83bbc28b1c6d4a48068e
--- /dev/null
+++ b/chrome/browser/metrics/time_ticks_experiment_win.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2013 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_BROWSER_METRICS_TIME_TICKS_EXPERIMENT_WIN_H_
+#define CHROME_BROWSER_METRICS_TIME_TICKS_EXPERIMENT_WIN_H_
+
+#include "build/build_config.h"
+
+#if defined(OS_WIN)
+
+namespace chrome {
+
+// Runs an experiment once per session upon successful upload of UMA. Determines
+// if QueryPerformanceCounter() is safe to use generally on this system. Ensures
+// that the resolution is better than 1ms, returns quickly, and is monotonically
+// increasing. Records the results in UMA for the next upload.
+void CollectTimeTicksStats();
+
+} // namespace chrome
+
+#endif // defined(OS_WIN)
+
+#endif // CHROME_BROWSER_METRICS_TIME_TICKS_EXPERIMENT_WIN_H_
« no previous file with comments | « chrome/browser/metrics/time_ticks_experiment_unittest.cc ('k') | chrome/browser/metrics/time_ticks_experiment_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698