diff options
author | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-29 16:36:47 +0000 |
---|---|---|
committer | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-29 16:36:47 +0000 |
commit | d8938e35147e132b56454962e1eb2a51fa0562f9 (patch) | |
tree | 8d5e532545249de22b2335af62aff23f2f259406 | |
parent | 804e103508e5f0c47ead50119ec9ee84e2e2959a (diff) | |
download | chromium_src-d8938e35147e132b56454962e1eb2a51fa0562f9.zip chromium_src-d8938e35147e132b56454962e1eb2a51fa0562f9.tar.gz chromium_src-d8938e35147e132b56454962e1eb2a51fa0562f9.tar.bz2 |
Adds Android UMA histograms for Tab switching.
On Android, when the system is under memory pressure, it
sends notifications to apps to trim their memory and it can also
kill background apps.
Chrome need sto strike a balance between tabs and other apps "freshness", that is,
chrome should keep as many tabs as possible, without compromising the user experience
by pushing the system into killing a background app (that could be in fact "fresher" than
a given tab).
This patch adds a few metrics that will help understand the behavior and better model the
tab restoring / eviction policies.
BUG=
Review URL: https://chromiumcodereview.appspot.com/14471002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197055 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | tools/metrics/histograms/histograms.xml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml index 4252654..c21f5c9 100644 --- a/tools/metrics/histograms/histograms.xml +++ b/tools/metrics/histograms/histograms.xml @@ -5789,6 +5789,38 @@ other types of suffix sets. <summary>Error codes returned by sqlite the web db.</summary> </histogram> +<histogram name="Tab.SwitchedToForegroundAge" units="ms"> + <summary>Age (in ms) when the tab was switched to foreground.</summary> +</histogram> + +<histogram name="Tab.SwitchedToForegroundLaunchedWithURL" + enum="TabSwitchedToForegroundLaunchedWithURL"> + <summary> + Each time a tab is brought to the foreground, this histogram indicates if + chrome was launched without an URL (i.e., from the launcher), or with an URL + (i.e., from another app). + </summary> +</histogram> + +<histogram name="Tab.SwitchedToForegroundMRURank"> + <summary> + Rank in MRU order (0 being first) when the tab was switched to foreground. + </summary> +</histogram> + +<histogram name="Tab.SwitchedToForegroundNumTabs"> + <summary>Count of all tabs when a tab is switched.</summary> +</histogram> + +<histogram name="Tab.SwitchedToForegroundRevisit" + enum="TabSwitchedToForegroundRevisit"> + <summary> + Each time a tab is brought to the foreground, this histogram indicates if + this is the first viewing of the tab since Chrome was put into foreground, + or if it was a return to a tab that has already been shown in this session. + </summary> +</histogram> + <histogram name="Touchpad.Device" enum="TouchpadDeviceState"> <summary>Tracks touchpad device state.</summary> </histogram> @@ -9264,6 +9296,16 @@ other types of suffix sets. </int> </enum> +<enum name="TabSwitchedToForegroundLaunchedWithURL" type="int"> + <int value="0" label="Launched without an URL"/> + <int value="1" label="Launched with an URL"/> +</enum> + +<enum name="TabSwitchedToForegroundRevisit" type="int"> + <int value="0" label="First time"/> + <int value="1" label="Revisit"/> +</enum> + <enum name="TcpSocketStatus" type="int"> <int value="0" label="Unknown"/> <int value="1" label="Fast Connection Return"/> |