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

Issue 2558553002: GCM: Add Android UMA, and UMA for deleted/collapsed messages (Closed)

Created:
4 years ago by johnme
Modified:
4 years ago
CC:
chromium-reviews, Peter Beverloo, johnme+watch_chromium.org, asvitkine+watch_chromium.org, zea+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GCM: Add Android UMA, and UMA for deleted/collapsed messages - Adds GCM.DeletedMessagesReceived UMA for incoming DELETED_MESSAGES, which happens when the 100 non-collapsible messages limit is exceeded on the GCM server. - Adds GCM.DataMessageReceivedHasCollapseKey UMA for incoming messages with collapse_key, giving a baseline to compare the previous UMA with. - Makes the existing GCM.DataMessageReceivedHasRegisteredApp and GCM.DataMessageReceived UMAs only count DATA_MESSAGE rather than DELETED_MESSAGES, to better match their names (and be more useful). - Also adds all of the above UMAs to Android, which used to have no UMA. BUG=672067 Committed: https://crrev.com/409dc538bb1495c458a72f7e93eb9e1dab102036 Cr-Commit-Position: refs/heads/master@{#438339}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address review comments and add Android logging #

Total comments: 4

Patch Set 3 : Reworded histograms #

Total comments: 6

Patch Set 4 : UMA_HISTOGRAM_BOOLEAN("GCM.DataMessageReceived", true); #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -19 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/services/gcm/ChromeGcmListenerService.java View 1 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/services/gcm/GcmUma.java View 1 2 chunks +26 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.cc View 1 2 3 4 chunks +29 lines, -4 lines 0 comments Download
M components/gcm_driver/gcm_stats_recorder_impl.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M google_apis/gcm/monitoring/gcm_stats_recorder.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 3 chunks +34 lines, -7 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
johnme
Haven't yet fixed up tests, sending out early to validate approach.
4 years ago (2016-12-06 19:25:35 UTC) #2
Peter Beverloo
Can we significantly simplify this by counting the histograms directly in GCMClientImpl? While it's a ...
4 years ago (2016-12-07 13:44:12 UTC) #3
johnme
Addressed review comments. New/modified histograms are moved to GCMClientImpl as discussed. https://codereview.chromium.org/2558553002/diff/1/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): ...
4 years ago (2016-12-07 14:29:16 UTC) #4
Peter Beverloo
lgtm https://codereview.chromium.org/2558553002/diff/20001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/2558553002/diff/20001/components/gcm_driver/gcm_client_impl.cc#newcode1433 components/gcm_driver/gcm_client_impl.cc:1433: if (!base::StringToInt(count_iter->second, &deleted_count)) Should we LOG(WARN)? I'm not ...
4 years ago (2016-12-07 19:36:21 UTC) #10
johnme
Addressed review comments https://codereview.chromium.org/2558553002/diff/20001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/2558553002/diff/20001/components/gcm_driver/gcm_client_impl.cc#newcode1433 components/gcm_driver/gcm_client_impl.cc:1433: if (!base::StringToInt(count_iter->second, &deleted_count)) On 2016/12/07 19:36:20, ...
4 years ago (2016-12-07 20:00:38 UTC) #11
johnme
isherman: please review histogram changes zea: please approve google_apis/gcm/monitoring/gcm_stats_recorder.h (though you may also be interested ...
4 years ago (2016-12-07 20:03:08 UTC) #13
Nicolas Zea
lgtm
4 years ago (2016-12-07 20:58:50 UTC) #14
Ilya Sherman
https://codereview.chromium.org/2558553002/diff/40001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/2558553002/diff/40001/components/gcm_driver/gcm_client_impl.cc#newcode1404 components/gcm_driver/gcm_client_impl.cc:1404: UMA_HISTOGRAM_COUNTS("GCM.DataMessageReceived", 1); Hmm, this is a very odd histogram ...
4 years ago (2016-12-08 06:54:56 UTC) #15
johnme
Thanks both; Ilya, I've replied to your comments. https://codereview.chromium.org/2558553002/diff/40001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/2558553002/diff/40001/components/gcm_driver/gcm_client_impl.cc#newcode1404 components/gcm_driver/gcm_client_impl.cc:1404: UMA_HISTOGRAM_COUNTS("GCM.DataMessageReceived", ...
4 years ago (2016-12-12 20:43:33 UTC) #16
Ilya Sherman
https://codereview.chromium.org/2558553002/diff/40001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/2558553002/diff/40001/components/gcm_driver/gcm_client_impl.cc#newcode1404 components/gcm_driver/gcm_client_impl.cc:1404: UMA_HISTOGRAM_COUNTS("GCM.DataMessageReceived", 1); On 2016/12/12 20:43:33, johnme wrote: > On ...
4 years ago (2016-12-12 21:07:16 UTC) #17
johnme
https://codereview.chromium.org/2558553002/diff/40001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/2558553002/diff/40001/components/gcm_driver/gcm_client_impl.cc#newcode1404 components/gcm_driver/gcm_client_impl.cc:1404: UMA_HISTOGRAM_COUNTS("GCM.DataMessageReceived", 1); On 2016/12/12 21:07:16, Ilya Sherman wrote: > ...
4 years ago (2016-12-13 16:04:34 UTC) #18
Ilya Sherman
Metrics LGTM, thanks.
4 years ago (2016-12-13 21:13:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2558553002/60001
4 years ago (2016-12-13 22:28:12 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-13 23:44:16 UTC) #25
commit-bot: I haz the power
4 years ago (2016-12-13 23:47:15 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/409dc538bb1495c458a72f7e93eb9e1dab102036
Cr-Commit-Position: refs/heads/master@{#438339}

Powered by Google App Engine
This is Rietveld 408576698