diff options
author | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 19:08:23 +0000 |
---|---|---|
committer | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 19:08:23 +0000 |
commit | 553dba6dd707ee02e609910462d2b7977f284af2 (patch) | |
tree | c38ea1fbfb3a1d387134541faa9bdfc0720234cf /chrome/browser/jankometer.cc | |
parent | 0e7fe5cab991f8751ecaa6cd43ff7e51d9647dde (diff) | |
download | chromium_src-553dba6dd707ee02e609910462d2b7977f284af2.zip chromium_src-553dba6dd707ee02e609910462d2b7977f284af2.tar.gz chromium_src-553dba6dd707ee02e609910462d2b7977f284af2.tar.bz2 |
Use string for Histogram names since these are all ASCII anyway.
Wide-character literals cause problems between platforms.
Review URL: http://codereview.chromium.org/28046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/jankometer.cc')
-rw-r--r-- | chrome/browser/jankometer.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/jankometer.cc b/chrome/browser/jankometer.cc index e1b3016..c7bb0a5 100644 --- a/chrome/browser/jankometer.cc +++ b/chrome/browser/jankometer.cc @@ -85,10 +85,10 @@ class JankObserver : public base::RefCountedThreadSafe<JankObserver>, : MaxMessageDelay_(excessive_duration), 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 ") - + ASCIIToWide(thread_name)).c_str(), 1, 3600000, 50), - total_times_((std::wstring(L"Chrome.TotalMsgL ") - + ASCIIToWide(thread_name)).c_str(), 1, 3600000, 50), + process_times_((std::string("Chrome.ProcMsgL ") + + thread_name).c_str(), 1, 3600000, 50), + total_times_((std::string("Chrome.TotalMsgL ") + + thread_name).c_str(), 1, 3600000, 50), total_time_watchdog_(excessive_duration, thread_name, watchdog_enable) { process_times_.SetFlags(kUmaTargetedHistogramFlag); total_times_.SetFlags(kUmaTargetedHistogramFlag); @@ -227,4 +227,3 @@ void UninstallJankometer() { io_observer = NULL; } } - |