diff options
author | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-28 22:33:05 +0000 |
---|---|---|
committer | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-28 22:33:05 +0000 |
commit | ee8349a502e7cc378de6b3da10d0fa35735b26c7 (patch) | |
tree | 070b52e444ba9746456e8669d9e84f543bc89328 /chromeos/chromeos_switches.h | |
parent | afbb7966ee68026760a575577e392732fc307045 (diff) | |
download | chromium_src-ee8349a502e7cc378de6b3da10d0fa35735b26c7.zip chromium_src-ee8349a502e7cc378de6b3da10d0fa35735b26c7.tar.gz chromium_src-ee8349a502e7cc378de6b3da10d0fa35735b26c7.tar.bz2 |
cros: Record cpu/paging metrics at some input events
This creates several histograms in the form
Platform.SwapJank.<event>.<measure>.<swap group>.<time interval>
where
<event> is TabSwitch or Scroll
<measure> is Cpu or Faults
<swap group> is Swap0, ... Swap3
<time interval> is Time1, ... Time4
When an event occurs (tab switch or scroll), we post tasks to the blocking
pool to read some measures at a few time intervals following the event
(100, 300, 1000 and 3000 milliseconds). Each measure is an average
for the interval. Measures are CPU utilization (%) and number of page
faults per second. We further classify the event by the current
utilization of the swap device: up to 10%, 10-30%, 30-60%, >60%.
The purpose of these histograms is to characterize the impact of
memory pressure (and consequently paging) on common events. We chose
tab switches and scroll events because they seem to be the ones
that are most affected by paging. Ideally we would like to measure
the time from the input event to the completion of the request,
but this is hard to do, so instead we attempt to extrapolate the impact
of paging from these indirect measures.
This has been tested both on Linux and Chrome OS, and the histograms
appear reasonable.
BUG=252772
TEST=manual, run with --v=0 --vmodule=swap_metrics=1 and switch tabs
R=semenzato@chromium.org, stevenjb@chromium.org
Review URL: https://codereview.chromium.org/17577003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209225 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/chromeos_switches.h')
-rw-r--r-- | chromeos/chromeos_switches.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chromeos/chromeos_switches.h b/chromeos/chromeos_switches.h index f5eddc1..cacab32 100644 --- a/chromeos/chromeos_switches.h +++ b/chromeos/chromeos_switches.h @@ -67,6 +67,7 @@ CHROMEOS_EXPORT extern const char kLoginProfile[]; CHROMEOS_EXPORT extern const char kLoginUser[]; CHROMEOS_EXPORT extern const char kNaturalScrollDefault[]; CHROMEOS_EXPORT extern const char kNoDiscardTabs[]; +CHROMEOS_EXPORT extern const char kNoSwapMetrics[]; #ifndef NDEBUG CHROMEOS_EXPORT extern const char kOobeSkipPostLogin[]; #endif |