diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 04:38:38 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 04:38:38 +0000 |
commit | 835d7c811c98f179090c57a827a9c9baa2130435 (patch) | |
tree | edcff6b2c9029c6f867f650d762837f2485d99fb /base/message_loop.cc | |
parent | 4b1deac7ba7e7a6bf0425e6ed4db26e0c29daa7f (diff) | |
download | chromium_src-835d7c811c98f179090c57a827a9c9baa2130435.zip chromium_src-835d7c811c98f179090c57a827a9c9baa2130435.tar.gz chromium_src-835d7c811c98f179090c57a827a9c9baa2130435.tar.bz2 |
Move Stats, histograms, and field trial into a metrics subdirectory of base and
put them in the base namespace.
TEST=it compiles
BUG=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62510 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.cc')
-rw-r--r-- | base/message_loop.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/base/message_loop.cc b/base/message_loop.cc index 56d1418..8f6c997b 100644 --- a/base/message_loop.cc +++ b/base/message_loop.cc @@ -7,10 +7,10 @@ #include <algorithm> #include "base/compiler_specific.h" -#include "base/histogram.h" #include "base/lazy_instance.h" #include "base/logging.h" #include "base/message_pump_default.h" +#include "base/metrics/histogram.h" #include "base/thread_local.h" #if defined(OS_MACOSX) @@ -60,7 +60,7 @@ const int kNumberOfDistinctMessagesDisplayed = 1100; // in the pair (i.e., the quoted string) when printing out a histogram. #define VALUE_TO_NUMBER_AND_NAME(name) {name, #name}, -const LinearHistogram::DescriptionPair event_descriptions_[] = { +const base::LinearHistogram::DescriptionPair event_descriptions_[] = { // Provide some pretty print capability in our histogram for our internal // messages. @@ -617,9 +617,10 @@ void MessageLoop::EnableHistogrammer(bool enable) { void MessageLoop::StartHistogrammer() { if (enable_histogrammer_ && !message_histogram_.get() - && StatisticsRecorder::WasStarted()) { + && base::StatisticsRecorder::WasStarted()) { DCHECK(!thread_name_.empty()); - message_histogram_ = LinearHistogram::FactoryGet("MsgLoop:" + thread_name_, + message_histogram_ = base::LinearHistogram::FactoryGet( + "MsgLoop:" + thread_name_, kLeastNonZeroMessageId, kMaxMessageId, kNumberOfDistinctMessagesDisplayed, message_histogram_->kHexRangePrintingFlag); |