Index: base/metrics/histogram_persistence.cc |
diff --git a/base/metrics/histogram_persistence.cc b/base/metrics/histogram_persistence.cc |
index f18d17528354329cd4995615d2451f6a52c59302..17ec35af6f807ee9c53b199b109fcbcb6c105845 100644 |
--- a/base/metrics/histogram_persistence.cc |
+++ b/base/metrics/histogram_persistence.cc |
@@ -187,6 +187,12 @@ void SetPersistentHistogramMemoryAllocator( |
// also released, future accesses to those histograms will seg-fault. |
CHECK(!g_allocator); |
g_allocator = allocator; |
+ |
+ size_t existing = StatisticsRecorder::GetHistogramCount(); |
+ if (existing != 0) { |
+ DLOG(WARNING) << existing |
+ << " histograms were created before persistence was enabled."; |
+ } |
} |
PersistentMemoryAllocator* GetPersistentHistogramMemoryAllocator() { |