Descriptioncustomtabs: 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. #
Messages
Total messages: 18 (7 generated)
|