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

Issue 2594373002: Add PendingEvents UMA to ConnectionEventTracker shutdown. (Closed)

Created:
4 years ago by harkness
Modified:
3 years, 11 months 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

Add PendingEvents UMA to ConnectionEventTracker shutdown. Currently, the ConnectionEventTracker keeps a buffer in memory of events which still need to be sent to GCM. If there is a shutdown, those events are discarded without reaching GCM. This CL adds a metric to track the event count at shutdown to give an estimate of how many events are being lost and whether a persistence layer needs to be added. BUG=662983 Review-Url: https://codereview.chromium.org/2594373002 Cr-Commit-Position: refs/heads/master@{#443208} Committed: https://chromium.googlesource.com/chromium/src/+/a21137ae0b53e26cde0941be1bf86f7bf4986b5d

Patch Set 1 #

Total comments: 6

Patch Set 2 : Renamed histogram and nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M google_apis/gcm/engine/connection_event_tracker.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
harkness
4 years ago (2016-12-22 10:50:14 UTC) #2
Peter Beverloo
lgtm % comments https://codereview.chromium.org/2594373002/diff/1/google_apis/gcm/engine/connection_event_tracker.cc File google_apis/gcm/engine/connection_event_tracker.cc (right): https://codereview.chromium.org/2594373002/diff/1/google_apis/gcm/engine/connection_event_tracker.cc#newcode24 google_apis/gcm/engine/connection_event_tracker.cc:24: UMA_HISTOGRAM_ENUMERATION("GCM.PendingEvents", completed_events_.size(), Let's call this PendingConnectionEventsAtShutdown? ...
4 years ago (2016-12-22 11:24:36 UTC) #3
harkness
https://codereview.chromium.org/2594373002/diff/1/google_apis/gcm/engine/connection_event_tracker.cc File google_apis/gcm/engine/connection_event_tracker.cc (right): https://codereview.chromium.org/2594373002/diff/1/google_apis/gcm/engine/connection_event_tracker.cc#newcode24 google_apis/gcm/engine/connection_event_tracker.cc:24: UMA_HISTOGRAM_ENUMERATION("GCM.PendingEvents", completed_events_.size(), On 2016/12/22 11:24:36, Peter Beverloo (OOO - ...
3 years, 12 months ago (2016-12-23 13:52:56 UTC) #4
harkness
zea@chromium.org: Please review changes in gcm_driver. haraken@chromium.org: Please review changes in histograms.
3 years, 12 months ago (2016-12-23 13:55:10 UTC) #6
haraken
+isherman for histograms (I can review UseCounter changes only.)
3 years, 12 months ago (2016-12-23 14:13:46 UTC) #8
Ilya Sherman
Metrics LGTM
3 years, 12 months ago (2016-12-24 01:22:26 UTC) #9
Nicolas Zea
lgtm
3 years, 11 months ago (2017-01-11 22:06:03 UTC) #10
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/2594373002/20001
3 years, 11 months ago (2017-01-12 09:56:52 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 11:35:53 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a21137ae0b53e26cde0941be1bf8...

Powered by Google App Engine
This is Rietveld 408576698