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 /chrome/browser/jankometer.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 'chrome/browser/jankometer.cc')
-rw-r--r-- | chrome/browser/jankometer.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/jankometer.cc b/chrome/browser/jankometer.cc index e1ac790..a9a99b0 100644 --- a/chrome/browser/jankometer.cc +++ b/chrome/browser/jankometer.cc @@ -8,10 +8,10 @@ #include "base/basictypes.h" #include "base/command_line.h" -#include "base/histogram.h" #include "base/message_loop.h" +#include "base/metrics/histogram.h" +#include "base/metrics/stats_counters.h" #include "base/ref_counted.h" -#include "base/stats_counters.h" #include "base/string_util.h" #include "base/thread.h" #include "base/time.h" @@ -102,10 +102,10 @@ class JankObserverHelper { TimeDelta queueing_time_; // Counters for the two types of jank we measure. - StatsCounter slow_processing_counter_; // Messages with long processing time. - StatsCounter queueing_delay_counter_; // Messages with long queueing delay. - scoped_refptr<Histogram> process_times_; // Time spent processing task. - scoped_refptr<Histogram> total_times_; // Total queueing plus processing. + base::StatsCounter slow_processing_counter_; // Msgs w/ long proc time. + base::StatsCounter queueing_delay_counter_; // Msgs w/ long queueing delay. + scoped_refptr<base::Histogram> process_times_; // Time spent proc. task. + scoped_refptr<base::Histogram> total_times_; // Total queueing plus proc. JankWatchdog total_time_watchdog_; // Watching for excessive total_time. DISALLOW_COPY_AND_ASSIGN(JankObserverHelper); @@ -119,12 +119,12 @@ JankObserverHelper::JankObserverHelper( slow_processing_counter_(std::string("Chrome.SlowMsg") + thread_name), queueing_delay_counter_(std::string("Chrome.DelayMsg") + thread_name), total_time_watchdog_(excessive_duration, thread_name, watchdog_enable) { - process_times_ = Histogram::FactoryGet( + process_times_ = base::Histogram::FactoryGet( std::string("Chrome.ProcMsgL ") + thread_name, - 1, 3600000, 50, Histogram::kUmaTargetedHistogramFlag); - total_times_ = Histogram::FactoryGet( + 1, 3600000, 50, base::Histogram::kUmaTargetedHistogramFlag); + total_times_ = base::Histogram::FactoryGet( std::string("Chrome.TotalMsgL ") + thread_name, - 1, 3600000, 50, Histogram::kUmaTargetedHistogramFlag); + 1, 3600000, 50, base::Histogram::kUmaTargetedHistogramFlag); } JankObserverHelper::~JankObserverHelper() {} |