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

Issue 2950583003: [Sync] Record sync memory usage in histogram broken by datatypes (Closed)

Created:
3 years, 6 months ago by pavely
Modified:
3 years, 6 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Record sync memory usage in histogram broken by datatypes Memory estimate is collected from Directory for directory based datatypes and from SharedModelTypeProcessor for USS datatypes. It is triggered right after configuration when all sync data is loaded into memory. BUG=706214 R=pnoland@chromium.org Review-Url: https://codereview.chromium.org/2950583003 Cr-Commit-Position: refs/heads/master@{#480992} Committed: https://chromium.googlesource.com/chromium/src/+/0af09891c51edf00a52822907147c23b4f92aba1

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 4

Patch Set 3 : Addressing Patrick's comments. #

Total comments: 4

Patch Set 4 : Address Ilya's comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -4 lines) Patch
M components/browser_sync/profile_sync_service.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/browser_sync/profile_sync_service.cc View 1 2 chunks +12 lines, -0 lines 0 comments Download
M components/sync/base/data_type_histogram.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M components/sync/base/data_type_histogram.cc View 1 2 3 1 chunk +13 lines, -0 lines 1 comment Download
M components/sync/driver/data_type_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync/driver/directory_data_type_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/driver/directory_data_type_controller.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M components/sync/driver/model_type_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/driver/model_type_controller.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M components/sync/driver/proxy_data_type_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/driver/proxy_data_type_controller.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync/model/model_type_debug_info.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/sync/model/model_type_debug_info.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M components/sync/syncable/directory.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/sync/syncable/directory.cc View 1 2 2 chunks +39 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
pavely
3 years, 6 months ago (2017-06-19 23:22:41 UTC) #3
Patrick Noland
lgtm https://codereview.chromium.org/2950583003/diff/20001/components/sync/driver/directory_data_type_controller.cc File components/sync/driver/directory_data_type_controller.cc (right): https://codereview.chromium.org/2950583003/diff/20001/components/sync/driver/directory_data_type_controller.cc#newcode91 components/sync/driver/directory_data_type_controller.cc:91: SyncRecordMemoryKbHistogram("Sync.ModelTypeMemoryKB.", type(), Can you make "Sync.ModelTypeMemoryKB." a constant? ...
3 years, 6 months ago (2017-06-19 23:34:52 UTC) #4
pavely
https://codereview.chromium.org/2950583003/diff/20001/components/sync/driver/directory_data_type_controller.cc File components/sync/driver/directory_data_type_controller.cc (right): https://codereview.chromium.org/2950583003/diff/20001/components/sync/driver/directory_data_type_controller.cc#newcode91 components/sync/driver/directory_data_type_controller.cc:91: SyncRecordMemoryKbHistogram("Sync.ModelTypeMemoryKB.", type(), On 2017/06/19 23:34:52, Patrick Noland wrote: > ...
3 years, 6 months ago (2017-06-19 23:53:38 UTC) #5
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/2950583003/40001
3 years, 6 months ago (2017-06-19 23:54:20 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/468066)
3 years, 6 months ago (2017-06-20 00:06:32 UTC) #10
pavely
+isherman@ for tools/metrics/histograms/histograms.xml
3 years, 6 months ago (2017-06-20 00:30:20 UTC) #13
Ilya Sherman
https://codereview.chromium.org/2950583003/diff/40001/components/sync/base/data_type_histogram.cc File components/sync/base/data_type_histogram.cc (right): https://codereview.chromium.org/2950583003/diff/40001/components/sync/base/data_type_histogram.cc#newcode26 components/sync/base/data_type_histogram.cc:26: base::HistogramBase::kUmaTargetedHistogramFlag); nit: Could you please use one of the ...
3 years, 6 months ago (2017-06-20 20:03:36 UTC) #14
pavely
https://codereview.chromium.org/2950583003/diff/40001/components/sync/base/data_type_histogram.cc File components/sync/base/data_type_histogram.cc (right): https://codereview.chromium.org/2950583003/diff/40001/components/sync/base/data_type_histogram.cc#newcode26 components/sync/base/data_type_histogram.cc:26: base::HistogramBase::kUmaTargetedHistogramFlag); On 2017/06/20 20:03:35, Ilya Sherman wrote: > nit: ...
3 years, 6 months ago (2017-06-20 20:51:40 UTC) #17
Ilya Sherman
Metrics LGTM https://codereview.chromium.org/2950583003/diff/60001/components/sync/base/data_type_histogram.cc File components/sync/base/data_type_histogram.cc (right): https://codereview.chromium.org/2950583003/diff/60001/components/sync/base/data_type_histogram.cc#newcode24 components/sync/base/data_type_histogram.cc:24: base::UmaHistogramCounts1M(full_histogram_name, value / 1024); You can also ...
3 years, 6 months ago (2017-06-20 20:55:43 UTC) #18
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/2950583003/60001
3 years, 6 months ago (2017-06-20 21:04:44 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/0af09891c51edf00a52822907147c23b4f92aba1
3 years, 6 months ago (2017-06-20 22:20:24 UTC) #25
dcheng
3 years, 6 months ago (2017-06-21 05:25:59 UTC) #27
Message was sent while issue was closed.
This seems to be causing compile errors on
https://build.chromium.org/p/chromium.chromiumos/builders/ChromiumOS%20x86-ge....

Powered by Google App Engine
This is Rietveld 408576698