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

Issue 1227363002: [Background Sync] Gather UMA data for Background Sync (Closed)

Created:
5 years, 5 months ago by iclelland
Modified:
5 years, 5 months ago
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, jam, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, jkarlin+watch_chromium.org, asvitkine+watch_chromium.org, darin-cc_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Background Sync] Gather UMA data for Background Sync This patch adds UMA histograms for * Sync registrations and unregistrations * Sync event success and failure * Sync event total run time It adds logging to the BackgroundSyncManager to collect the data for these histograms. BUG=490482 Committed: https://crrev.com/a84c0e6e9875a605f5ef9a1f78f59c4cadb43836 Cr-Commit-Position: refs/heads/master@{#339072}

Patch Set 1 #

Patch Set 2 : Record whether a registration could fire immediately or not #

Total comments: 9

Patch Set 3 : Addressing review comments #

Patch Set 4 : Remove uncollected metrics #

Total comments: 23

Patch Set 5 : Addressing review comments #

Patch Set 6 : Properly account for total sync running time #

Patch Set 7 : Rename WouldFireRegistrationWithOptions to AreOptionConditionsMet #

Total comments: 2

Patch Set 8 : Explicit conversion to boolean in UMA recording #

Total comments: 14

Patch Set 9 : Addressing latest comments #

Patch Set 10 : Remove BackgroundSync.Registration.Periodic.CouldFire #

Patch Set 11 : Rebase #

Patch Set 12 : Fix bad rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -34 lines) Patch
M content/browser/background_sync/background_sync_manager.h View 1 2 3 4 5 6 7 chunks +15 lines, -6 lines 0 comments Download
M content/browser/background_sync/background_sync_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 23 chunks +117 lines, -28 lines 0 comments Download
A content/browser/background_sync/background_sync_metrics.h View 1 2 3 4 5 6 7 8 1 chunk +55 lines, -0 lines 0 comments Download
A content/browser/background_sync/background_sync_metrics.cc View 1 2 3 4 5 6 7 8 9 1 chunk +77 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 4 chunks +97 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
iclelland
asvitkine -- can you PTAL at the UMA code, and the updates to histograms.xml: Have ...
5 years, 5 months ago (2015-07-09 17:05:53 UTC) #2
Alexei Svitkine (slow)
I don't see all of the new static functions being called - did you omit ...
5 years, 5 months ago (2015-07-09 21:02:58 UTC) #3
iclelland
Not all of the metrics are called yet. The registration, unregistration, and event time and ...
5 years, 5 months ago (2015-07-10 14:57:26 UTC) #4
Alexei Svitkine (slow)
I think it's better to land the metrics in the same CL where they get ...
5 years, 5 months ago (2015-07-10 15:12:50 UTC) #5
iclelland
On 2015/07/10 15:12:50, Alexei Svitkine wrote: > I think it's better to land the metrics ...
5 years, 5 months ago (2015-07-10 15:48:26 UTC) #6
Alexei Svitkine (slow)
lgtm
5 years, 5 months ago (2015-07-10 20:25:52 UTC) #7
jkarlin
https://codereview.chromium.org/1227363002/diff/60001/content/browser/background_sync/background_sync_manager.cc File content/browser/background_sync/background_sync_manager.cc (right): https://codereview.chromium.org/1227363002/diff/60001/content/browser/background_sync/background_sync_manager.cc#newcode81 content/browser/background_sync/background_sync_manager.cc:81: options.periodicity, false, Prefer an enum to a bool. https://codereview.chromium.org/1227363002/diff/60001/content/browser/background_sync/background_sync_manager.cc#newcode82 ...
5 years, 5 months ago (2015-07-13 16:51:13 UTC) #8
iclelland
Thanks for the review, Josh -- I've addressed most of the comments now. I think ...
5 years, 5 months ago (2015-07-13 19:34:31 UTC) #9
jkarlin
https://codereview.chromium.org/1227363002/diff/60001/content/browser/background_sync/background_sync_manager.cc File content/browser/background_sync/background_sync_manager.cc (right): https://codereview.chromium.org/1227363002/diff/60001/content/browser/background_sync/background_sync_manager.cc#newcode683 content/browser/background_sync/background_sync_manager.cc:683: bool BackgroundSyncManager::WouldFireRegistrationWithOptions( On 2015/07/13 19:34:31, iclelland wrote: > On ...
5 years, 5 months ago (2015-07-14 15:54:10 UTC) #10
jkarlin
https://codereview.chromium.org/1227363002/diff/120001/content/browser/background_sync/background_sync_metrics.cc File content/browser/background_sync/background_sync_metrics.cc (right): https://codereview.chromium.org/1227363002/diff/120001/content/browser/background_sync/background_sync_metrics.cc#newcode51 content/browser/background_sync/background_sync_metrics.cc:51: UMA_HISTOGRAM_BOOLEAN("BackgroundSync.Registration.Periodic.CouldFire", These should either be made proper booleans or ...
5 years, 5 months ago (2015-07-14 21:56:22 UTC) #11
iclelland
https://codereview.chromium.org/1227363002/diff/60001/content/browser/background_sync/background_sync_manager.cc File content/browser/background_sync/background_sync_manager.cc (right): https://codereview.chromium.org/1227363002/diff/60001/content/browser/background_sync/background_sync_manager.cc#newcode683 content/browser/background_sync/background_sync_manager.cc:683: bool BackgroundSyncManager::WouldFireRegistrationWithOptions( On 2015/07/14 15:54:10, jkarlin wrote: > On ...
5 years, 5 months ago (2015-07-15 14:22:25 UTC) #12
jkarlin
Looking really good. Just a few more things. https://codereview.chromium.org/1227363002/diff/140001/content/browser/background_sync/background_sync_metrics.cc File content/browser/background_sync/background_sync_metrics.cc (right): https://codereview.chromium.org/1227363002/diff/140001/content/browser/background_sync/background_sync_metrics.cc#newcode52 content/browser/background_sync/background_sync_metrics.cc:52: UMA_HISTOGRAM_BOOLEAN("BackgroundSync.Registration.Periodic.CouldFire", ...
5 years, 5 months ago (2015-07-15 17:17:06 UTC) #13
iclelland
https://codereview.chromium.org/1227363002/diff/140001/content/browser/background_sync/background_sync_metrics.cc File content/browser/background_sync/background_sync_metrics.cc (right): https://codereview.chromium.org/1227363002/diff/140001/content/browser/background_sync/background_sync_metrics.cc#newcode52 content/browser/background_sync/background_sync_metrics.cc:52: UMA_HISTOGRAM_BOOLEAN("BackgroundSync.Registration.Periodic.CouldFire", On 2015/07/15 17:17:06, jkarlin wrote: > Not sure ...
5 years, 5 months ago (2015-07-15 18:01:35 UTC) #14
jkarlin
lgtm with one change https://codereview.chromium.org/1227363002/diff/140001/content/browser/background_sync/background_sync_metrics.cc File content/browser/background_sync/background_sync_metrics.cc (right): https://codereview.chromium.org/1227363002/diff/140001/content/browser/background_sync/background_sync_metrics.cc#newcode52 content/browser/background_sync/background_sync_metrics.cc:52: UMA_HISTOGRAM_BOOLEAN("BackgroundSync.Registration.Periodic.CouldFire", On 2015/07/15 18:01:35, iclelland ...
5 years, 5 months ago (2015-07-15 19:27:33 UTC) #15
iclelland
https://codereview.chromium.org/1227363002/diff/140001/content/browser/background_sync/background_sync_metrics.cc File content/browser/background_sync/background_sync_metrics.cc (right): https://codereview.chromium.org/1227363002/diff/140001/content/browser/background_sync/background_sync_metrics.cc#newcode52 content/browser/background_sync/background_sync_metrics.cc:52: UMA_HISTOGRAM_BOOLEAN("BackgroundSync.Registration.Periodic.CouldFire", On 2015/07/15 19:27:33, jkarlin_OOO wrote: > On 2015/07/15 ...
5 years, 5 months ago (2015-07-16 13:29:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1227363002/180001
5 years, 5 months ago (2015-07-16 13:29:58 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/45925) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 5 months ago (2015-07-16 13:31:59 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1227363002/220001
5 years, 5 months ago (2015-07-16 17:42:25 UTC) #24
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 5 months ago (2015-07-16 17:50:39 UTC) #25
commit-bot: I haz the power
5 years, 5 months ago (2015-07-16 17:52:24 UTC) #26
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/a84c0e6e9875a605f5ef9a1f78f59c4cadb43836
Cr-Commit-Position: refs/heads/master@{#339072}

Powered by Google App Engine
This is Rietveld 408576698