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

Issue 2781863004: [Sync] Implement EstimateMemoryUsage for SharedModelTypeProcessor and ModelTypeWorker (Closed)

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

Description

[Sync] Implement EstimateMemoryUsage for SharedModelTypeProcessor and ModelTypeWorker This CL implements EstimateMemoryUsage for processor, worker and all subobjects. R=pnoland@chromium.org BUG=706214 Review-Url: https://codereview.chromium.org/2781863004 Cr-Commit-Position: refs/heads/master@{#460677} Committed: https://chromium.googlesource.com/chromium/src/+/49e09c1721596fe0925bfd290750fd6c707b09cc

Patch Set 1 #

Patch Set 2 : Fix lint errors #

Total comments: 6

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -9 lines) Patch
M components/sync/base/proto_value_ptr.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M components/sync/engine/non_blocking_sync_common.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/sync/engine/non_blocking_sync_common.cc View 1 2 2 chunks +18 lines, -0 lines 0 comments Download
M components/sync/engine_impl/model_type_worker.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync/engine_impl/model_type_worker.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M components/sync/engine_impl/worker_entity_tracker.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync/engine_impl/worker_entity_tracker.cc View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M components/sync/model/entity_data.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync/model/entity_data.cc View 1 2 2 chunks +26 lines, -8 lines 0 comments Download
M components/sync/model_impl/processor_entity_tracker.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync/model_impl/processor_entity_tracker.cc View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M components/sync/protocol/proto_memory_estimations.cc View 1 chunk +4 lines, -1 line 0 comments Download
M components/sync/protocol/proto_visitors.h View 2 chunks +8 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (18 generated)
pavely
3 years, 8 months ago (2017-03-29 18:36:42 UTC) #10
Patrick Noland
lgtm % a couple comments https://codereview.chromium.org/2781863004/diff/20001/components/sync/base/proto_value_ptr.h File components/sync/base/proto_value_ptr.h (right): https://codereview.chromium.org/2781863004/diff/20001/components/sync/base/proto_value_ptr.h#newcode131 components/sync/base/proto_value_ptr.h:131: using base::trace_event::EstimateMemoryUsage; Can you ...
3 years, 8 months ago (2017-03-29 19:42:54 UTC) #11
DmitrySkiba
Looks good, the only thing is that you shouldn't include static size (i.e. sizeof(bla)). EstimateMemoryUsage() ...
3 years, 8 months ago (2017-03-29 20:01:09 UTC) #13
pavely
https://codereview.chromium.org/2781863004/diff/20001/components/sync/base/proto_value_ptr.h File components/sync/base/proto_value_ptr.h (right): https://codereview.chromium.org/2781863004/diff/20001/components/sync/base/proto_value_ptr.h#newcode131 components/sync/base/proto_value_ptr.h:131: using base::trace_event::EstimateMemoryUsage; On 2017/03/29 19:42:54, Patrick Noland wrote: > ...
3 years, 8 months ago (2017-03-30 01:07:25 UTC) #16
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/2781863004/40001
3 years, 8 months ago (2017-03-30 01:08:15 UTC) #17
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-03-30 01:08:17 UTC) #19
DmitrySkiba
lgtm
3 years, 8 months ago (2017-03-30 01:10:00 UTC) #20
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/2781863004/40001
3 years, 8 months ago (2017-03-30 01:15:22 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/183114)
3 years, 8 months ago (2017-03-30 04:53:25 UTC) #24
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/2781863004/40001
3 years, 8 months ago (2017-03-30 05:54:50 UTC) #26
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 06:10:48 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/49e09c1721596fe0925bfd290750...

Powered by Google App Engine
This is Rietveld 408576698