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

Issue 1273303002: Measuring data use of different ModelTypes in Sync Service. (Closed)

Created:
5 years, 4 months ago by amohammadkhan
Modified:
5 years, 3 months ago
CC:
chromium-reviews, tim+watch_chromium.org, cbentzel+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@NewServices
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Measuring data use of different ModelTypes in Sync Service. To understand the contribution of each ModelType to total traffic of Sync service, SyncEntries of different ModelTypes in update and commit messages are counteda and sparse UMA histograms are made to record them. ModelTypes are buckets in these histograms. Beside the aforementioned information, a histogram records the amount of byte useage of ProgressMarkers in update messages. BUG=516455 Committed: https://crrev.com/30c09859c0ec4afbc12b09fc6adda4312afdbd65 Cr-Commit-Position: refs/heads/master@{#345461}

Patch Set 1 #

Total comments: 22

Patch Set 2 : Fixing formatting problems. #

Patch Set 3 : Using SyncModelTypes of histograms.xml #

Patch Set 4 : Updating previous message size in commit #

Total comments: 4

Patch Set 5 : Removing unnecessary dependencies. #

Total comments: 7

Patch Set 6 : Adding tests and updating owners #

Patch Set 7 : Changing the name of histogramTester. #

Total comments: 4

Patch Set 8 : Adding bucket specific tests. #

Patch Set 9 : Fix formatting issues caused by Eclipse autoformatting. #

Patch Set 10 : Removing extra spaces #

Total comments: 2

Patch Set 11 : Moving the Macro to data_type_histogram.h #

Patch Set 12 : Updating some of the comments #

Total comments: 8

Patch Set 13 : Changing test function to not be dependent on specific values. #

Patch Set 14 : Fixing spacing in test function. #

Patch Set 15 : Updating the recording macro. #

Total comments: 16

Patch Set 16 : Changing the recording macro to a recording function. #

Total comments: 16

Patch Set 17 : Addressing reviewers' comments. #

Total comments: 4

Patch Set 18 : Addresses reviewer's comments. #

Total comments: 2

Patch Set 19 : Rebased #

Patch Set 20 : Adding data_type_histogram.cc to BUILD.gn #

Patch Set 21 : Changing the initialization of vectors in syncer_unittest.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -5 lines) Patch
M sync/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M sync/engine/commit.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +14 lines, -4 lines 0 comments Download
M sync/engine/directory_update_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -0 lines 0 comments Download
M sync/engine/process_updates_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +9 lines, -0 lines 0 comments Download
M sync/engine/syncer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +110 lines, -0 lines 0 comments Download
M sync/sync.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M sync/util/data_type_histogram.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +9 lines, -1 line 0 comments Download
A sync/util/data_type_histogram.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +13 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +48 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 46 (6 generated)
amohammadkhan
5 years, 4 months ago (2015-08-06 22:36:58 UTC) #2
Nicolas Zea
https://codereview.chromium.org/1273303002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1273303002/diff/1/tools/metrics/histograms/histograms.xml#newcode5240 tools/metrics/histograms/histograms.xml:5240: + Number of downloaded bytes of different data types ...
5 years, 4 months ago (2015-08-06 23:22:24 UTC) #4
amohammadkhan
https://codereview.chromium.org/1273303002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1273303002/diff/1/tools/metrics/histograms/histograms.xml#newcode5240 tools/metrics/histograms/histograms.xml:5240: + Number of downloaded bytes of different data types ...
5 years, 4 months ago (2015-08-07 00:17:12 UTC) #5
bengr
https://codereview.chromium.org/1273303002/diff/1/net/url_request/data_use_measurement.cc File net/url_request/data_use_measurement.cc (right): https://codereview.chromium.org/1273303002/diff/1/net/url_request/data_use_measurement.cc#newcode138 net/url_request/data_use_measurement.cc:138: void SparseDataUseReport(const std::string& histogram_name, Add a blank line above. ...
5 years, 4 months ago (2015-08-07 17:13:37 UTC) #6
amohammadkhan
https://codereview.chromium.org/1273303002/diff/1/net/url_request/data_use_measurement.cc File net/url_request/data_use_measurement.cc (right): https://codereview.chromium.org/1273303002/diff/1/net/url_request/data_use_measurement.cc#newcode138 net/url_request/data_use_measurement.cc:138: void SparseDataUseReport(const std::string& histogram_name, On 2015/08/07 17:13:37, bengr wrote: ...
5 years, 4 months ago (2015-08-07 18:52:31 UTC) #7
Nicolas Zea
https://codereview.chromium.org/1273303002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1273303002/diff/1/tools/metrics/histograms/histograms.xml#newcode5253 tools/metrics/histograms/histograms.xml:5253: +<histogram name="DataUse.Sync.ProgressMarker.Bytes" On 2015/08/07 00:17:12, amohammadkhan wrote: > On ...
5 years, 4 months ago (2015-08-07 22:57:36 UTC) #8
amohammadkhan
https://codereview.chromium.org/1273303002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1273303002/diff/1/tools/metrics/histograms/histograms.xml#newcode5253 tools/metrics/histograms/histograms.xml:5253: +<histogram name="DataUse.Sync.ProgressMarker.Bytes" On 2015/08/07 22:57:36, Nicolas Zea (OOO until ...
5 years, 4 months ago (2015-08-08 00:50:19 UTC) #9
amohammadkhan
On 2015/08/08 00:50:19, amohammadkhan wrote: > https://codereview.chromium.org/1273303002/diff/1/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (right): > > https://codereview.chromium.org/1273303002/diff/1/tools/metrics/histograms/histograms.xml#newcode5253 > ...
5 years, 4 months ago (2015-08-10 19:15:56 UTC) #10
amohammadkhan
5 years, 4 months ago (2015-08-10 20:15:09 UTC) #12
sclittle
https://codereview.chromium.org/1273303002/diff/80001/sync/engine/commit.cc File sync/engine/commit.cc (right): https://codereview.chromium.org/1273303002/diff/80001/sync/engine/commit.cc#newcode90 sync/engine/commit.cc:90: UMA_HISTOGRAM_SPARSE_SLOWLY_WITH_VALUE("DataUse.Sync.Upload.Bytes", Could you test somewhere that these histograms are ...
5 years, 4 months ago (2015-08-10 23:39:39 UTC) #13
bengr
Ali, if you upload an incomplete CL (e.g., this one because it has no tests), ...
5 years, 4 months ago (2015-08-11 16:55:59 UTC) #14
amohammadkhan
On 2015/08/11 16:55:59, bengr wrote: > Ali, if you upload an incomplete CL (e.g., this ...
5 years, 4 months ago (2015-08-11 17:28:55 UTC) #15
amohammadkhan
https://codereview.chromium.org/1273303002/diff/80001/sync/engine/commit.cc File sync/engine/commit.cc (right): https://codereview.chromium.org/1273303002/diff/80001/sync/engine/commit.cc#newcode90 sync/engine/commit.cc:90: UMA_HISTOGRAM_SPARSE_SLOWLY_WITH_VALUE("DataUse.Sync.Upload.Bytes", On 2015/08/10 23:39:39, sclittle wrote: > Could you ...
5 years, 4 months ago (2015-08-11 21:04:44 UTC) #16
amohammadkhan
On 2015/08/11 21:04:44, amohammadkhan wrote: > https://codereview.chromium.org/1273303002/diff/80001/sync/engine/commit.cc > File sync/engine/commit.cc (right): > > https://codereview.chromium.org/1273303002/diff/80001/sync/engine/commit.cc#newcode90 > ...
5 years, 4 months ago (2015-08-11 21:09:47 UTC) #17
sclittle
https://codereview.chromium.org/1273303002/diff/70007/sync/engine/commit.cc File sync/engine/commit.cc (right): https://codereview.chromium.org/1273303002/diff/70007/sync/engine/commit.cc#newcode96 sync/engine/commit.cc:96: //NOTREACHED(); Can you remove this? https://codereview.chromium.org/1273303002/diff/70007/sync/engine/syncer_unittest.cc File sync/engine/syncer_unittest.cc (right): ...
5 years, 4 months ago (2015-08-14 19:10:59 UTC) #18
amohammadkhan
https://codereview.chromium.org/1273303002/diff/70007/sync/engine/commit.cc File sync/engine/commit.cc (right): https://codereview.chromium.org/1273303002/diff/70007/sync/engine/commit.cc#newcode96 sync/engine/commit.cc:96: //NOTREACHED(); On 2015/08/14 19:10:59, sclittle wrote: > Can you ...
5 years, 4 months ago (2015-08-17 17:56:17 UTC) #19
sclittle
https://codereview.chromium.org/1273303002/diff/160006/sync/engine/commit.cc File sync/engine/commit.cc (right): https://codereview.chromium.org/1273303002/diff/160006/sync/engine/commit.cc#newcode18 sync/engine/commit.cc:18: #define UMA_HISTOGRAM_SPARSE_SLOWLY_WITH_VALUE(name, sample, value) \ This should really be ...
5 years, 4 months ago (2015-08-17 18:30:02 UTC) #20
amohammadkhan
https://codereview.chromium.org/1273303002/diff/160006/sync/engine/commit.cc File sync/engine/commit.cc (right): https://codereview.chromium.org/1273303002/diff/160006/sync/engine/commit.cc#newcode18 sync/engine/commit.cc:18: #define UMA_HISTOGRAM_SPARSE_SLOWLY_WITH_VALUE(name, sample, value) \ On 2015/08/17 18:30:02, sclittle ...
5 years, 4 months ago (2015-08-17 18:35:28 UTC) #21
bengr
I'll defer to sclittle@ and zea@.
5 years, 4 months ago (2015-08-17 21:41:39 UTC) #22
Nicolas Zea
On 2015/08/17 18:35:28, amohammadkhan wrote: > https://codereview.chromium.org/1273303002/diff/160006/sync/engine/commit.cc > File sync/engine/commit.cc (right): > > https://codereview.chromium.org/1273303002/diff/160006/sync/engine/commit.cc#newcode18 > ...
5 years, 4 months ago (2015-08-18 20:13:17 UTC) #23
amohammadkhan
On 2015/08/18 20:13:17, Nicolas Zea wrote: > On 2015/08/17 18:35:28, amohammadkhan wrote: > > https://codereview.chromium.org/1273303002/diff/160006/sync/engine/commit.cc ...
5 years, 4 months ago (2015-08-18 21:11:01 UTC) #24
Nicolas Zea
https://codereview.chromium.org/1273303002/diff/200001/sync/engine/syncer_unittest.cc File sync/engine/syncer_unittest.cc (right): https://codereview.chromium.org/1273303002/diff/200001/sync/engine/syncer_unittest.cc#newcode670 sync/engine/syncer_unittest.cc:670: // This test has three steps. In the first ...
5 years, 4 months ago (2015-08-18 21:55:19 UTC) #25
amohammadkhan
https://codereview.chromium.org/1273303002/diff/200001/sync/engine/syncer_unittest.cc File sync/engine/syncer_unittest.cc (right): https://codereview.chromium.org/1273303002/diff/200001/sync/engine/syncer_unittest.cc#newcode670 sync/engine/syncer_unittest.cc:670: // This test has three steps. In the first ...
5 years, 4 months ago (2015-08-19 17:33:36 UTC) #26
Nicolas Zea
https://codereview.chromium.org/1273303002/diff/260001/sync/engine/syncer_unittest.cc File sync/engine/syncer_unittest.cc (right): https://codereview.chromium.org/1273303002/diff/260001/sync/engine/syncer_unittest.cc#newcode681 sync/engine/syncer_unittest.cc:681: vector<int> progress_bookmark = {0, 0, 0}; nit: std:: here ...
5 years, 4 months ago (2015-08-19 22:01:51 UTC) #27
sclittle
https://codereview.chromium.org/1273303002/diff/260001/sync/engine/syncer_unittest.cc File sync/engine/syncer_unittest.cc (right): https://codereview.chromium.org/1273303002/diff/260001/sync/engine/syncer_unittest.cc#newcode682 sync/engine/syncer_unittest.cc:682: vector<int> progress_all = {0, 0, 0}; Instead of using ...
5 years, 4 months ago (2015-08-19 22:41:35 UTC) #28
amohammadkhan
https://codereview.chromium.org/1273303002/diff/260001/sync/engine/syncer_unittest.cc File sync/engine/syncer_unittest.cc (right): https://codereview.chromium.org/1273303002/diff/260001/sync/engine/syncer_unittest.cc#newcode681 sync/engine/syncer_unittest.cc:681: vector<int> progress_bookmark = {0, 0, 0}; On 2015/08/19 22:01:51, ...
5 years, 4 months ago (2015-08-20 00:20:13 UTC) #29
Nicolas Zea
https://codereview.chromium.org/1273303002/diff/260001/sync/util/data_type_histogram.h File sync/util/data_type_histogram.h (right): https://codereview.chromium.org/1273303002/diff/260001/sync/util/data_type_histogram.h#newcode17 sync/util/data_type_histogram.h:17: #define SYNC_RECORD_DATATYPE_BIN(name, sample, value) \ On 2015/08/20 00:20:13, amohammadkhan ...
5 years, 4 months ago (2015-08-20 17:59:51 UTC) #30
amohammadkhan
https://codereview.chromium.org/1273303002/diff/260001/sync/util/data_type_histogram.h File sync/util/data_type_histogram.h (right): https://codereview.chromium.org/1273303002/diff/260001/sync/util/data_type_histogram.h#newcode17 sync/util/data_type_histogram.h:17: #define SYNC_RECORD_DATATYPE_BIN(name, sample, value) \ On 2015/08/20 17:59:50, Nicolas ...
5 years, 4 months ago (2015-08-20 18:12:52 UTC) #31
sclittle
I'll defer to zea@ for this code review. LGTM % nits. https://codereview.chromium.org/1273303002/diff/280001/sync/engine/syncer_unittest.cc File sync/engine/syncer_unittest.cc (right): ...
5 years, 4 months ago (2015-08-24 18:22:47 UTC) #32
amohammadkhan
asvitkine@chromium.org: Please review changes in
5 years, 4 months ago (2015-08-24 18:27:28 UTC) #34
Alexei Svitkine (slow)
https://codereview.chromium.org/1273303002/diff/280001/sync/engine/commit.cc File sync/engine/commit.cc (right): https://codereview.chromium.org/1273303002/diff/280001/sync/engine/commit.cc#newcode78 sync/engine/commit.cc:78: it != contributions.end(); ++it) { Nit: Switch to C++11 ...
5 years, 4 months ago (2015-08-24 21:27:00 UTC) #35
amohammadkhan
https://codereview.chromium.org/1273303002/diff/280001/sync/engine/commit.cc File sync/engine/commit.cc (right): https://codereview.chromium.org/1273303002/diff/280001/sync/engine/commit.cc#newcode78 sync/engine/commit.cc:78: it != contributions.end(); ++it) { On 2015/08/24 21:27:00, Alexei ...
5 years, 4 months ago (2015-08-24 22:52:41 UTC) #36
bengr
Lgtm, but left the careful review to sclittle.
5 years, 4 months ago (2015-08-25 00:06:57 UTC) #37
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1273303002/diff/300001/sync/util/data_type_histogram.h File sync/util/data_type_histogram.h (right): https://codereview.chromium.org/1273303002/diff/300001/sync/util/data_type_histogram.h#newcode10 sync/util/data_type_histogram.h:10: #include "base/metrics/histogram.h" Nit: Change this to histogram_macros.h https://codereview.chromium.org/1273303002/diff/300001/tools/metrics/histograms/histograms.xml ...
5 years, 3 months ago (2015-08-25 15:49:28 UTC) #38
amohammadkhan
https://codereview.chromium.org/1273303002/diff/300001/sync/util/data_type_histogram.h File sync/util/data_type_histogram.h (right): https://codereview.chromium.org/1273303002/diff/300001/sync/util/data_type_histogram.h#newcode10 sync/util/data_type_histogram.h:10: #include "base/metrics/histogram.h" On 2015/08/25 15:49:28, Alexei Svitkine (OOO Aug15-24) ...
5 years, 3 months ago (2015-08-25 16:35:36 UTC) #39
Nicolas Zea
lgtm https://codereview.chromium.org/1273303002/diff/320001/sync/engine/commit.cc File sync/engine/commit.cc (right): https://codereview.chromium.org/1273303002/diff/320001/sync/engine/commit.cc#newcode86 sync/engine/commit.cc:86: UMA_HISTOGRAM_SPARSE_SLOWLY("DataUse.Sync.Upload.Count", Didn't you change this histogram macro/function?
5 years, 3 months ago (2015-08-25 17:38:10 UTC) #40
Nicolas Zea
https://codereview.chromium.org/1273303002/diff/320001/sync/engine/commit.cc File sync/engine/commit.cc (right): https://codereview.chromium.org/1273303002/diff/320001/sync/engine/commit.cc#newcode86 sync/engine/commit.cc:86: UMA_HISTOGRAM_SPARSE_SLOWLY("DataUse.Sync.Upload.Count", On 2015/08/25 17:38:10, Nicolas Zea wrote: > Didn't ...
5 years, 3 months ago (2015-08-25 17:38:55 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1273303002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1273303002/380001
5 years, 3 months ago (2015-08-25 22:01:16 UTC) #44
commit-bot: I haz the power
Committed patchset #21 (id:380001)
5 years, 3 months ago (2015-08-25 22:37:23 UTC) #45
commit-bot: I haz the power
5 years, 3 months ago (2015-08-25 22:38:17 UTC) #46
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/30c09859c0ec4afbc12b09fc6adda4312afdbd65
Cr-Commit-Position: refs/heads/master@{#345461}

Powered by Google App Engine
This is Rietveld 408576698