From 8cf815be4062fbb05232bec82ec44395a5e8c9a1 Mon Sep 17 00:00:00 2001 From: "skuhne@chromium.org" Date: Thu, 5 Dec 2013 20:08:15 +0000 Subject: 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 --- ash/multi_profile_uma.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ash/multi_profile_uma.cc') 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 -- cgit v1.1