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

Unified Diff: base/metrics/statistics_recorder.h

Issue 1083603002: Add histograms to record the number of writes to the prefs file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | base/metrics/statistics_recorder.cc » ('j') | base/prefs/json_pref_store.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/statistics_recorder.h
diff --git a/base/metrics/statistics_recorder.h b/base/metrics/statistics_recorder.h
index 3bef622b76f2f5612be639532bff71cc3b88394d..f60cc924846894808308f163f4d75458c8be85d0 100644
--- a/base/metrics/statistics_recorder.h
+++ b/base/metrics/statistics_recorder.h
@@ -33,6 +33,10 @@ class BASE_EXPORT StatisticsRecorder {
// Initializes the StatisticsRecorder system. Safe to call multiple times.
static void Initialize();
+ // Initializes the StatisticsRecorder system for testing. This will reset all
+ // existing histogram data.
+ static void InitializeForTest();
Alexei Svitkine (slow) 2015/04/24 16:34:47 This sounds like Reset rather than initialize. Als
raymes 2015/04/27 03:27:54 Done.
+
// Find out if histograms can now be registered into our list.
static bool IsActive();
« no previous file with comments | « no previous file | base/metrics/statistics_recorder.cc » ('j') | base/prefs/json_pref_store.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698