Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1504)

Issue 844193005: Add UMA metrics for profile switching. (Closed)

Created:
5 years, 11 months ago by anthonyvd
Modified:
5 years, 10 months ago
Reviewers:
Mike Lerman, jwd, sky
CC:
chromium-reviews, tfarina, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA metrics for profile switching. This changes adds four histograms to UMA. Profile.NumberofSwitches collects the number of profile switches happening over a session. The others are: - Profile.ProfileSwitch.ToOpenedProfile counts the number of switches to opened profiles and buckets depending on the UI flow used to switch. - Profile.ProfileSwitch.ToUnopenedProfile does the same but for switches to unopened profiles - Profile.ProfileSwitch aggregates the data from the previous two BUG=448982 Committed: https://crrev.com/34f3304e9f3c0ad31cfc546be7f77f1dbf26a619 Cr-Commit-Position: refs/heads/master@{#313951}

Patch Set 1 #

Total comments: 28

Patch Set 2 : Use existing histogram and fix issues raised by mlerman@ #

Total comments: 12

Patch Set 3 : Clean up and use browser_finder #

Total comments: 1

Patch Set 4 : Rebase #

Patch Set 5 : Remove ununsed include file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -14 lines) Patch
M chrome/browser/browser_shutdown.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_metrics.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_metrics.cc View 1 2 3 4 6 chunks +71 lines, -7 lines 0 comments Download
M chrome/browser/profiles/profile_window.cc View 1 2 3 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/user_manager_mac.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/user_manager_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
anthonyvd
Hi, This changelist adds some UMA metrics related to profile switching. jwd@chromium.org: histograms.xml mlerman@chromium.org: c/b/profiles/ ...
5 years, 11 months ago (2015-01-21 19:28:21 UTC) #2
Mike Lerman
Great start on this, Anthony! We may also want to think about tracking how often ...
5 years, 11 months ago (2015-01-21 20:58:03 UTC) #3
anthonyvd
Thanks Michael! I clarified a couple points, let me know if it makes sense. I'll ...
5 years, 11 months ago (2015-01-21 21:12:19 UTC) #4
Mike Lerman
https://codereview.chromium.org/844193005/diff/1/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/844193005/diff/1/chrome/browser/profiles/profile_metrics.cc#newcode332 chrome/browser/profiles/profile_metrics.cc:332: UMA_HISTOGRAM_ENUMERATION("Profile.ProfileSwitch", On 2015/01/21 21:12:18, anthonyvd wrote: > On 2015/01/21 ...
5 years, 11 months ago (2015-01-21 21:24:18 UTC) #5
anthonyvd
https://codereview.chromium.org/844193005/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/844193005/diff/20001/tools/metrics/histograms/histograms.xml#newcode62109 tools/metrics/histograms/histograms.xml:62109: + <affected-histogram name="Profile.OpenMethod"/> jwd@ can you confirm if suffixing ...
5 years, 11 months ago (2015-01-21 23:31:19 UTC) #6
jwd
lgtm https://codereview.chromium.org/844193005/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/844193005/diff/20001/tools/metrics/histograms/histograms.xml#newcode62109 tools/metrics/histograms/histograms.xml:62109: + <affected-histogram name="Profile.OpenMethod"/> On 2015/01/21 23:31:19, anthonyvd wrote: ...
5 years, 11 months ago (2015-01-22 21:11:33 UTC) #7
anthonyvd
https://codereview.chromium.org/844193005/diff/1/chrome/browser/browser_shutdown.cc File chrome/browser/browser_shutdown.cc (right): https://codereview.chromium.org/844193005/diff/1/chrome/browser/browser_shutdown.cc#newcode157 chrome/browser/browser_shutdown.cc:157: //Log the amount of times the user switched profiles ...
5 years, 11 months ago (2015-01-23 16:01:31 UTC) #8
Mike Lerman
Coming along nicely! https://codereview.chromium.org/844193005/diff/20001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/844193005/diff/20001/chrome/browser/profiles/profile_metrics.cc#newcode165 chrome/browser/profiles/profile_metrics.cc:165: profile_open_state = PROFILE_OPENED; Perhaps you can ...
5 years, 11 months ago (2015-01-23 19:46:14 UTC) #9
anthonyvd
https://codereview.chromium.org/844193005/diff/20001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/844193005/diff/20001/chrome/browser/profiles/profile_metrics.cc#newcode165 chrome/browser/profiles/profile_metrics.cc:165: profile_open_state = PROFILE_OPENED; On 2015/01/23 19:46:14, Mike Lerman wrote: ...
5 years, 11 months ago (2015-01-26 16:07:48 UTC) #10
Mike Lerman
lgtm. Good work! https://codereview.chromium.org/844193005/diff/40001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/844193005/diff/40001/chrome/browser/profiles/profile_metrics.cc#newcode15 chrome/browser/profiles/profile_metrics.cc:15: #include "chrome/browser/ui/browser.h" You can remove browser.h.
5 years, 11 months ago (2015-01-27 15:28:26 UTC) #11
sky
LGTM
5 years, 10 months ago (2015-01-29 17:59:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/844193005/80001
5 years, 10 months ago (2015-01-30 18:31:16 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-01-30 18:34:44 UTC) #15
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 18:35:58 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/34f3304e9f3c0ad31cfc546be7f77f1dbf26a619
Cr-Commit-Position: refs/heads/master@{#313951}

Powered by Google App Engine
This is Rietveld 408576698