Modified the PerformanceMonitor to not use test/ code for enumerating Chrome processes.
commit56fd0a89174b70b665e6c0267a05e81beb86d510
authoroysteine@chromium.org <oysteine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 2 Oct 2013 15:56:09 +0000 (2 15:56 +0000)
committeroysteine@chromium.org <oysteine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 2 Oct 2013 15:56:09 +0000 (2 15:56 +0000)
tree5fe813a40793f0a01257a46630451836cb584f5d
parent22c808bb76ea5873bab7b39b9e4e53f1e11d208b
Modified the PerformanceMonitor to not use test/ code for enumerating Chrome processes.

Separated out basic performance metrics gathering in the PerformanceMonitor to run independently from the metrics/events database code. The former will now run even without the performance-monitor-gathering flag.

Added an UMA event which triggers when the browser process never runs below X CPU utilization over a period of Y seconds.

BUG=279660, 273320

Review URL: https://codereview.chromium.org/23825004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226466 0039d316-1c4b-4281-b951-d872f2087c98
14 files changed:
chrome/browser/chrome_browser_main.cc
chrome/browser/performance_monitor/constants.h
chrome/browser/performance_monitor/event.h
chrome/browser/performance_monitor/event_type.h [new file with mode: 0644]
chrome/browser/performance_monitor/performance_monitor.cc
chrome/browser/performance_monitor/performance_monitor.h
chrome/browser/performance_monitor/performance_monitor_browsertest.cc
chrome/browser/performance_monitor/process_metrics_history.cc [new file with mode: 0644]
chrome/browser/performance_monitor/process_metrics_history.h [new file with mode: 0644]
chrome/browser/performance_monitor/startup_timer.cc
chrome/chrome_browser.gypi
chrome/chrome_tests.gypi
chrome/chrome_tests_unit.gypi
tools/metrics/actions/chromeactions.txt