summaryrefslogtreecommitdiffstats
path: root/chrome/browser/performance_monitor
diff options
context:
space:
mode:
authoroysteine@chromium.org <oysteine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-11 00:32:29 +0000
committeroysteine@chromium.org <oysteine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-11 00:32:29 +0000
commit97ae4c173c7f37ad85c186523f535f4ab8bd8702 (patch)
treebf3ea14fb14358fb6d68fff37c2a4464c61e0378 /chrome/browser/performance_monitor
parentca5dfc1a223e00235364a1cf0dfaa4f153a35adf (diff)
downloadchromium_src-97ae4c173c7f37ad85c186523f535f4ab8bd8702.zip
chromium_src-97ae4c173c7f37ad85c186523f535f4ab8bd8702.tar.gz
chromium_src-97ae4c173c7f37ad85c186523f535f4ab8bd8702.tar.bz2
Changed the HighCPU UMA action into a histogram
Originally added in https://codereview.chromium.org/23825004/ R=asvitkine@chromium.org, yoz@chromium.org BUG=304905 Review URL: https://codereview.chromium.org/26304003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228061 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/performance_monitor')
-rw-r--r--chrome/browser/performance_monitor/process_metrics_history.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/performance_monitor/process_metrics_history.cc b/chrome/browser/performance_monitor/process_metrics_history.cc
index 84ffcac..9ac206fb 100644
--- a/chrome/browser/performance_monitor/process_metrics_history.cc
+++ b/chrome/browser/performance_monitor/process_metrics_history.cc
@@ -5,6 +5,7 @@
#include <limits>
#include "base/logging.h"
+#include "base/metrics/histogram.h"
#include "base/process/process_metrics.h"
#include "chrome/browser/performance_monitor/constants.h"
@@ -12,7 +13,6 @@
#if defined(OS_MACOSX)
#include "content/public/browser/browser_child_process_host.h"
#endif
-#include "content/public/browser/user_metrics.h"
#include "content/public/common/process_type.h"
namespace performance_monitor {
@@ -79,10 +79,8 @@ void ProcessMetricsHistory::RunPerformanceTriggers() {
// If CPU usage has consistently been above our threshold,
// we *may* have an issue.
- if (min_cpu_usage_ > kHighCPUUtilizationThreshold) {
- content::RecordAction(
- content::UserMetricsAction("PerformanceMonitor.HighCPU.Browser"));
- }
+ if (min_cpu_usage_ > kHighCPUUtilizationThreshold)
+ UMA_HISTOGRAM_BOOLEAN("PerformanceMonitor.HighCPU.BrowserProcess", true);
}
} // namespace performance_monitor