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

Issue 1136763004: Add UMA data for memory pressure warning received for sync (Closed)

Created:
5 years, 7 months ago by Gang Wu
Modified:
5 years, 5 months ago
Reviewers:
stanisc, Mark P
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, asvitkine+watch_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

Adding UMA for sync service, to see how many MEMORY_PRESSURE_LEVEL_CRITICAL received. BUG=488290 Committed: https://crrev.com/68208a4cb9def359c3054f0769853f31602968bf Cr-Commit-Position: refs/heads/master@{#330253}

Patch Set 1 #

Patch Set 2 : #

Total comments: 25

Patch Set 3 : #

Total comments: 18

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Total comments: 27

Patch Set 6 : #

Total comments: 20

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -0 lines) Patch
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 4 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
M components/sync_driver/pref_names.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync_driver/pref_names.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M components/sync_driver/sync_prefs.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M components/sync_driver/sync_prefs.cc View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (8 generated)
Gang Wu
please take a look.
5 years, 7 months ago (2015-05-15 00:09:57 UTC) #2
Gang Wu
Add Mark for UMA review
5 years, 7 months ago (2015-05-15 17:26:42 UTC) #6
Mark P
https://codereview.chromium.org/1136763004/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1136763004/diff/20001/tools/metrics/histograms/histograms.xml#newcode41555 tools/metrics/histograms/histograms.xml:41555: +<histogram name="Sync.MemoryPressureWarningBeforeCrash"> units=? or enum=? ditto below https://codereview.chromium.org/1136763004/diff/20001/tools/metrics/histograms/histograms.xml#newcode41558 tools/metrics/histograms/histograms.xml:41558: ...
5 years, 7 months ago (2015-05-15 17:46:09 UTC) #7
Nicolas Zea
Handing this off to Stan for review of the sync logic
5 years, 7 months ago (2015-05-15 17:48:45 UTC) #9
Gang Wu
updated base on comment https://codereview.chromium.org/1136763004/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1136763004/diff/20001/tools/metrics/histograms/histograms.xml#newcode41555 tools/metrics/histograms/histograms.xml:41555: +<histogram name="Sync.MemoryPressureWarningBeforeCrash"> On 2015/05/15 17:46:09, ...
5 years, 7 months ago (2015-05-15 18:20:37 UTC) #10
Mark P
https://codereview.chromium.org/1136763004/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1136763004/diff/40001/tools/metrics/histograms/histograms.xml#newcode41555 tools/metrics/histograms/histograms.xml:41555: +<histogram name="Sync.MemoryPressureWarningBeforeCrash" units="Times"> units="count" I think would be clearer. ...
5 years, 7 months ago (2015-05-15 19:18:23 UTC) #11
Gang Wu
updated. https://codereview.chromium.org/1136763004/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1136763004/diff/40001/tools/metrics/histograms/histograms.xml#newcode41555 tools/metrics/histograms/histograms.xml:41555: +<histogram name="Sync.MemoryPressureWarningBeforeCrash" units="Times"> On 2015/05/15 19:18:23, Mark P ...
5 years, 7 months ago (2015-05-15 20:05:57 UTC) #12
Mark P
https://codereview.chromium.org/1136763004/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1136763004/diff/40001/tools/metrics/histograms/histograms.xml#newcode41558 tools/metrics/histograms/histograms.xml:41558: + Counts the number of times sync service received ...
5 years, 7 months ago (2015-05-15 20:15:39 UTC) #13
stanisc
Looks mostly good but a few names should be changed to improve code readability. https://codereview.chromium.org/1136763004/diff/20001/chrome/browser/sync/profile_sync_service.cc ...
5 years, 7 months ago (2015-05-15 20:31:05 UTC) #14
Gang Wu
https://codereview.chromium.org/1136763004/diff/20001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/1136763004/diff/20001/chrome/browser/sync/profile_sync_service.cc#newcode920 chrome/browser/sync/profile_sync_service.cc:920: sync_prefs_.SetCurrentShutdown(false); On 2015/05/15 20:31:04, stanisc wrote: > Please add ...
5 years, 7 months ago (2015-05-15 21:13:47 UTC) #16
Mark P
In the future, please use the code review tool to reply to comments. I sent ...
5 years, 7 months ago (2015-05-15 21:37:39 UTC) #17
stanisc
https://codereview.chromium.org/1136763004/diff/80001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/1136763004/diff/80001/chrome/browser/sync/profile_sync_service.cc#newcode920 chrome/browser/sync/profile_sync_service.cc:920: // Mark this dhutdown cleanly(without crash). Typo: dhutdown https://codereview.chromium.org/1136763004/diff/80001/chrome/browser/sync/profile_sync_service.cc#newcode2740 ...
5 years, 7 months ago (2015-05-15 22:06:49 UTC) #18
Gang Wu
https://codereview.chromium.org/1136763004/diff/80001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/1136763004/diff/80001/chrome/browser/sync/profile_sync_service.cc#newcode920 chrome/browser/sync/profile_sync_service.cc:920: // Mark this dhutdown cleanly(without crash). On 2015/05/15 22:06:48, ...
5 years, 7 months ago (2015-05-15 22:22:30 UTC) #19
Gang Wu
sorry, forgot to upload the changes, please take a look now.
5 years, 7 months ago (2015-05-15 22:33:13 UTC) #20
Mark P
https://codereview.chromium.org/1136763004/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1136763004/diff/100001/tools/metrics/histograms/histograms.xml#newcode41559 tools/metrics/histograms/histograms.xml:41559: + MEMORY_PRESSURE_LEVEL_CRITICAL warning bbefore the sync service shut down ...
5 years, 7 months ago (2015-05-15 22:44:44 UTC) #21
Gang Wu
Thanks for recommendation! https://codereview.chromium.org/1136763004/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1136763004/diff/100001/tools/metrics/histograms/histograms.xml#newcode41559 tools/metrics/histograms/histograms.xml:41559: + MEMORY_PRESSURE_LEVEL_CRITICAL warning bbefore the sync ...
5 years, 7 months ago (2015-05-15 22:53:49 UTC) #22
Mark P
histograms.xml lgtm
5 years, 7 months ago (2015-05-15 23:01:04 UTC) #23
stanisc
lgtm with a few nits. https://codereview.chromium.org/1136763004/diff/100001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/1136763004/diff/100001/chrome/browser/sync/profile_sync_service.cc#newcode920 chrome/browser/sync/profile_sync_service.cc:920: // Mark this shutdown ...
5 years, 7 months ago (2015-05-15 23:11:04 UTC) #24
Gang Wu
Thanks for the review! https://codereview.chromium.org/1136763004/diff/100001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/1136763004/diff/100001/chrome/browser/sync/profile_sync_service.cc#newcode920 chrome/browser/sync/profile_sync_service.cc:920: // Mark this shutdown cleanly(without ...
5 years, 7 months ago (2015-05-15 23:21:41 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136763004/140001
5 years, 7 months ago (2015-05-15 23:24:20 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-05-16 00:52:47 UTC) #29
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/68208a4cb9def359c3054f0769853f31602968bf Cr-Commit-Position: refs/heads/master@{#330253}
5 years, 7 months ago (2015-05-18 11:30:10 UTC) #30
Gang Wu
5 years, 5 months ago (2015-07-10 00:18:07 UTC) #31
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698