diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-22 00:37:21 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-22 00:37:21 +0000 |
commit | 7a1c5ab3654723cfe4489e6981dcd67da1489f3f (patch) | |
tree | fca8c695a824dd834b95c29b5f618f6673066a5f /chrome/browser/jankometer.cc | |
parent | f5eddaf87e378c29412a028e027f91d48fbab551 (diff) | |
download | chromium_src-7a1c5ab3654723cfe4489e6981dcd67da1489f3f.zip chromium_src-7a1c5ab3654723cfe4489e6981dcd67da1489f3f.tar.gz chromium_src-7a1c5ab3654723cfe4489e6981dcd67da1489f3f.tar.bz2 |
Remove use of wide characters in stats table identifiers.
Review URL: http://codereview.chromium.org/11544
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5880 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 d67f51c..9247484 100644 --- a/chrome/browser/jankometer.cc +++ b/chrome/browser/jankometer.cc @@ -51,7 +51,7 @@ const bool kPlaySounds = false; class JankWatchdog : public Watchdog { public: JankWatchdog(const TimeDelta& duration, - const std::wstring& thread_watched_name, + const std::string& thread_watched_name, bool enabled) : Watchdog(duration, thread_watched_name, enabled), thread_name_watched_(thread_watched_name), @@ -68,7 +68,7 @@ class JankWatchdog : public Watchdog { } private: - std::wstring thread_name_watched_; + std::string thread_name_watched_; int alarm_count_; DISALLOW_EVIL_CONSTRUCTORS(JankWatchdog); @@ -78,17 +78,17 @@ class JankWatchdog : public Watchdog { class JankObserver : public base::RefCountedThreadSafe<JankObserver>, public MessageLoopForUI::Observer { public: - JankObserver(const wchar_t* thread_name, + JankObserver(const char* thread_name, const TimeDelta& excessive_duration, bool watchdog_enable) : MaxMessageDelay_(excessive_duration), - slow_processing_counter_(std::wstring(L"Chrome.SlowMsg") + thread_name), - queueing_delay_counter_(std::wstring(L"Chrome.DelayMsg") + thread_name), + slow_processing_counter_(std::string("Chrome.SlowMsg") + thread_name), + queueing_delay_counter_(std::string("Chrome.DelayMsg") + thread_name), process_times_((std::wstring(L"Chrome.ProcMsgL ") - + thread_name).c_str(), 1, 3600000, 50), + + ASCIIToWide(thread_name)).c_str(), 1, 3600000, 50), total_times_((std::wstring(L"Chrome.TotalMsgL ") - + thread_name).c_str(), 1, 3600000, 50), - total_time_watchdog_(excessive_duration, std::wstring(thread_name), + + ASCIIToWide(thread_name)).c_str(), 1, 3600000, 50), + total_time_watchdog_(excessive_duration, ASCIIToWide(thread_name), watchdog_enable) { process_times_.SetFlags(kUmaTargetedHistogramFlag); total_times_.SetFlags(kUmaTargetedHistogramFlag); @@ -192,7 +192,7 @@ void InstallJankometer(const CommandLine &parsed_command_line) { // Install on the UI thread. ui_observer = new JankObserver( - L"UI", + "UI", TimeDelta::FromMilliseconds(kMaxUIMessageDelayMs), ui_watchdog_enabled); ui_observer->AddRef(); @@ -202,7 +202,7 @@ void InstallJankometer(const CommandLine &parsed_command_line) { // interaction with web pages. We must proxy to that thread before we can // add our observer. io_observer = new JankObserver( - L"IO", + "IO", TimeDelta::FromMilliseconds(kMaxIOMessageDelayMs), io_watchdog_enabled); io_observer->AddRef(); |