| Index: base/metrics/statistics_recorder.h
|
| diff --git a/base/metrics/statistics_recorder.h b/base/metrics/statistics_recorder.h
|
| index 36b2f308af30bf8bc52d23a7ddfd9af69d22ccc7..401a786a79beb1f3e3304065f36d04d33e3c742e 100644
|
| --- a/base/metrics/statistics_recorder.h
|
| +++ b/base/metrics/statistics_recorder.h
|
| @@ -130,6 +130,14 @@ class BASE_EXPORT StatisticsRecorder {
|
| // histogram. This method is thread safe.
|
| static OnSampleCallback FindCallback(const std::string& histogram_name);
|
|
|
| + // Initializes logging histograms with --v=1. Safe to call several times.
|
| + // Is called from ctor but for browser it seems that it is more useful to
|
| + // start logging after statistics recorder, so we need to init log-on-shutdown
|
| + // later.
|
| + static void InitLogOnShutdown();
|
| +
|
| + static bool VLogInitializedForTesting();
|
| +
|
| // Clears all of the known histograms and resets static variables to a
|
| // state that allows a new initialization.
|
| static void ResetForTesting();
|
| @@ -157,6 +165,7 @@ class BASE_EXPORT StatisticsRecorder {
|
| friend class SharedHistogramTest;
|
| friend class SparseHistogramTest;
|
| friend class StatisticsRecorderTest;
|
| + friend class StatisticsRecorderLoggingTestBase;
|
| FRIEND_TEST_ALL_PREFIXES(HistogramDeltaSerializationTest,
|
| DeserializeHistogramAndAddSamples);
|
|
|
| @@ -166,6 +175,8 @@ class BASE_EXPORT StatisticsRecorder {
|
| StatisticsRecorder();
|
| ~StatisticsRecorder();
|
|
|
| + void InitLogOnShutdownWithoutLock();
|
| +
|
| static void Reset();
|
| static void DumpHistogramsToVlog(void* instance);
|
|
|
|
|