summaryrefslogtreecommitdiffstats
path: root/ash/multi_profile_uma.cc
diff options
context:
space:
mode:
authorskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-05 20:08:15 +0000
committerskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-05 20:08:15 +0000
commit8cf815be4062fbb05232bec82ec44395a5e8c9a1 (patch)
treec72c7f47378654fdb45827d0e927b1407b7bc541 /ash/multi_profile_uma.cc
parentca66296a1952514eb42a8b4446fe4b5e7c819599 (diff)
downloadchromium_src-8cf815be4062fbb05232bec82ec44395a5e8c9a1.zip
chromium_src-8cf815be4062fbb05232bec82ec44395a5e8c9a1.tar.gz
chromium_src-8cf815be4062fbb05232bec82ec44395a5e8c9a1.tar.bz2
Add UMA stats for discarded tabs on a per logged in user base
Each discarded tab will be "stored" in the bucket for the number of users logged in at the time of the occurrence. To get to a useful number, the value needs to be normalized by dividing the absolute value per bucket by the corresponding UsersPerSession bucket (in percent). BUG=321739 TEST=visual Review URL: https://codereview.chromium.org/104713003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239023 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/multi_profile_uma.cc')
-rw-r--r--ash/multi_profile_uma.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ash/multi_profile_uma.cc b/ash/multi_profile_uma.cc
index ec29a83..cbf3b05 100644
--- a/ash/multi_profile_uma.cc
+++ b/ash/multi_profile_uma.cc
@@ -48,4 +48,10 @@ void MultiProfileUMA::RecordUserCount(int number_of_users) {
UMA_HISTOGRAM_COUNTS_100("MultiProfile.UsersPerSession", number_of_users);
}
+// static
+void MultiProfileUMA::RecordDiscardedTab(int number_of_users) {
+ UMA_HISTOGRAM_COUNTS_100("MultiProfile.DiscardedTabsPerUser",
+ number_of_users);
+}
+
} // namespace ash