summaryrefslogtreecommitdiffstats
path: root/base/metrics/statistics_recorder.h
diff options
context:
space:
mode:
authorraymes <raymes@chromium.org>2015-04-29 00:43:09 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-29 07:43:58 +0000
commitbfb910ab2937285271031b257f3ba248afff6fdc (patch)
treedb9ab494910dd01a45a462909405649ccd98a68d /base/metrics/statistics_recorder.h
parent29784655d6847d16ee58e9b75964658ecf3002cd (diff)
downloadchromium_src-bfb910ab2937285271031b257f3ba248afff6fdc.zip
chromium_src-bfb910ab2937285271031b257f3ba248afff6fdc.tar.gz
chromium_src-bfb910ab2937285271031b257f3ba248afff6fdc.tar.bz2
Add histograms to record the number of writes to the prefs file
This adds histograms that records how often we write to the prefs file. The number of writes is recorded for every 5 minute interval of time spent in Chrome. To avoid doing any work when Chrome is idle and not recording any writes, we only record metrics at the point when a write occurs. Whenever a write occurs we look to see if the last write occurred more than 5mins ago. If it did, we report the write count for the previous period of time. The histogram is called: Settings.JsonDataWriteCount.<pref filename> e.g. Settings.JsonDataWriteCount.Local_State This is in a similar vein to Settings.JsonDataReadSizeKilobytes.* BUG=476800 Review URL: https://codereview.chromium.org/1083603002 Cr-Commit-Position: refs/heads/master@{#327446}
Diffstat (limited to 'base/metrics/statistics_recorder.h')
-rw-r--r--base/metrics/statistics_recorder.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/metrics/statistics_recorder.h b/base/metrics/statistics_recorder.h
index 3bef622..b523057 100644
--- a/base/metrics/statistics_recorder.h
+++ b/base/metrics/statistics_recorder.h
@@ -88,6 +88,7 @@ class BASE_EXPORT StatisticsRecorder {
friend class HistogramBaseTest;
friend class HistogramSnapshotManagerTest;
friend class HistogramTest;
+ friend class JsonPrefStoreTest;
friend class SparseHistogramTest;
friend class StatisticsRecorderTest;
FRIEND_TEST_ALL_PREFIXES(HistogramDeltaSerializationTest,