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

Issue 1325213002: customtabs: UMA histogram tracking whether clients call warmup(). (Closed)

Created:
5 years, 3 months ago by Benoit L
Modified:
5 years, 2 months ago
Reviewers:
pasko, Ilya Sherman
CC:
chromium-reviews, 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

customtabs: UMA histogram tracking whether clients call warmup(). This adds a UMA histogram to learn about the behavior of client applications. This is useful as calling warmup() is a net performance win for Custom Tabs, and clients should be encouraged to do so. This histogram has 5 states, since we cannot always reliably know whether a client has called warmup(). Indeed, warmup can only query the UID of the client, and a client can send a Custom Tabs intent without creating a session. So, we have 5 states: 1. No session, and no-one has called warmup 2. No session, but someone has called warmup 3. Session, no warmup call from this session, but one from someone else. 4. Session, no warmup call from this session, and no-one has called it 5. Session, and warmup() call from this client. The good cases for Chrome are the sum of (2), (3) and (5), but we should encourage (5). (3) and (4) are bad client behaviors (you cared to connect to the service but not to call warmup()). BUG=527788 Committed: https://crrev.com/a08156afab9cf7f36223058a8ff753441f0b81ed Cr-Commit-Position: refs/heads/master@{#351543}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 6

Patch Set 4 : Rebase, address comments, added tests. #

Patch Set 5 : Rebase + more tests. #

Total comments: 4

Patch Set 6 : Clarified enum names in histograms.xml. #

Patch Set 7 : Make Findbugs happy. #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java View 1 2 3 4 5 6 7 chunks +38 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/ClientManagerTest.java View 1 2 3 4 1 chunk +84 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
Benoit L
Hi, It's unfortunately a bit more complicated than I hoped, so we have 5 states...
5 years, 3 months ago (2015-09-03 12:32:54 UTC) #2
pasko
https://codereview.chromium.org/1325213002/diff/30001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java (right): https://codereview.chromium.org/1325213002/diff/30001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java#newcode83 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java:83: // Values for the "CustomTabs.CalledWarmup" UMA histogram. Append-only. nittynit: ...
5 years, 3 months ago (2015-09-03 18:02:20 UTC) #3
Benoit L
Thank you for the review. The refactor you suggested was done and landed in a ...
5 years, 2 months ago (2015-09-29 09:04:23 UTC) #4
pasko
lgtm with a few naming suggestions to make it easier to read the dashboard. thanks! ...
5 years, 2 months ago (2015-09-29 09:50:07 UTC) #5
Benoit L
Hello isherman, This is a new histogram to more precisely assess how client application use ...
5 years, 2 months ago (2015-09-29 10:07:42 UTC) #7
Ilya Sherman
histograms lgtm
5 years, 2 months ago (2015-09-30 04:10:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1325213002/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1325213002/110001
5 years, 2 months ago (2015-09-30 11:17:02 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/89457)
5 years, 2 months ago (2015-09-30 11:25:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1325213002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1325213002/130001
5 years, 2 months ago (2015-09-30 11:46:22 UTC) #16
commit-bot: I haz the power
Committed patchset #8 (id:130001)
5 years, 2 months ago (2015-09-30 13:35:39 UTC) #17
commit-bot: I haz the power
5 years, 2 months ago (2015-09-30 13:36:51 UTC) #18
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a08156afab9cf7f36223058a8ff753441f0b81ed
Cr-Commit-Position: refs/heads/master@{#351543}

Powered by Google App Engine
This is Rietveld 408576698