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

Issue 2452713003: [Sync] Implement MemoryDumpProvider. (Closed)

Created:
4 years, 1 month ago by DmitrySkiba
Modified:
4 years, 1 month ago
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Implement MemoryDumpProvider. This CL adds MemoryDumpProvider for sync component to show its memory usage in chrome://tracing. BUG=649065 Committed: https://crrev.com/b4199f82689fd146d52d8352f4d07bd79d6cfbd6 Cr-Commit-Position: refs/heads/master@{#433623}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase; address comments; git cl format #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase; update unittest data #

Patch Set 5 : Remove temporary unittests. #

Patch Set 6 : Rebase #

Patch Set 7 : Remove cruft from unrelated branch #

Patch Set 8 : Fix presumit; fix Windows; git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -28 lines) Patch
M base/trace_event/memory_usage_estimator.h View 1 2 3 4 5 6 7 2 chunks +27 lines, -0 lines 0 comments Download
M components/sync/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync/base/proto_value_ptr.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M components/sync/base/unique_position.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync/base/unique_position.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_core.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_core.cc View 1 4 chunks +15 lines, -0 lines 0 comments Download
M components/sync/engine/fake_sync_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/engine/fake_sync_manager.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M components/sync/engine/sync_manager.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M components/sync/engine_impl/sync_manager_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/engine_impl/sync_manager_impl.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A components/sync/protocol/proto_memory_estimations.h View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A components/sync/protocol/proto_memory_estimations.cc View 1 2 3 4 1 chunk +126 lines, -0 lines 0 comments Download
M components/sync/protocol/proto_value_conversions.cc View 1 2 3 4 5 6 7 4 chunks +27 lines, -3 lines 0 comments Download
M components/sync/protocol/proto_value_conversions_unittest.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M components/sync/protocol/proto_visitors.h View 1 2 3 12 chunks +58 lines, -0 lines 0 comments Download
M components/sync/syncable/directory.h View 3 chunks +11 lines, -0 lines 0 comments Download
M components/sync/syncable/directory.cc View 1 2 4 chunks +64 lines, -0 lines 0 comments Download
M components/sync/syncable/directory_backing_store.h View 2 chunks +8 lines, -0 lines 0 comments Download
M components/sync/syncable/directory_backing_store.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M components/sync/syncable/entry_kernel.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M components/sync/syncable/entry_kernel.cc View 1 2 3 chunks +15 lines, -1 line 0 comments Download
M components/sync/syncable/parent_child_index.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync/syncable/parent_child_index.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M components/sync/syncable/syncable_id.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M sql/connection.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M sql/connection.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M sql/connection_memory_dump_provider.h View 2 chunks +11 lines, -0 lines 0 comments Download
M sql/connection_memory_dump_provider.cc View 2 chunks +53 lines, -24 lines 0 comments Download

Messages

Total messages: 32 (19 generated)
DmitrySkiba
Almost done, please take a look. Specifically: 1. Whether any fields added to proto_visitors.h need ...
4 years, 1 month ago (2016-10-25 21:11:08 UTC) #2
pavely
https://codereview.chromium.org/2452713003/diff/1/components/sync/protocol/proto_memory_estimations_unittest.cc File components/sync/protocol/proto_memory_estimations_unittest.cc (right): https://codereview.chromium.org/2452713003/diff/1/components/sync/protocol/proto_memory_estimations_unittest.cc#newcode7 components/sync/protocol/proto_memory_estimations_unittest.cc:7: #include "base/test/scoped_memory_usage.h" I can't find scoped_memory_usage.h either. https://codereview.chromium.org/2452713003/diff/1/components/sync/protocol/proto_visitors.h File ...
4 years, 1 month ago (2016-10-28 22:55:33 UTC) #3
DmitrySkiba
On 2016/10/28 22:55:33, pavely wrote: > https://codereview.chromium.org/2452713003/diff/1/components/sync/protocol/proto_memory_estimations_unittest.cc > File components/sync/protocol/proto_memory_estimations_unittest.cc (right): > > https://codereview.chromium.org/2452713003/diff/1/components/sync/protocol/proto_memory_estimations_unittest.cc#newcode7 > ...
4 years, 1 month ago (2016-10-28 22:58:52 UTC) #4
DmitrySkiba
shess@, please take a look at sql/ changes. They add ReportMemoryUsage() to sql::Connection, so that ...
4 years, 1 month ago (2016-11-09 18:56:35 UTC) #6
DmitrySkiba
pavely@ please take another look. I've added code to remove client_only_encrypted_data from PasswordSpecifics (with a ...
4 years, 1 month ago (2016-11-09 19:01:48 UTC) #7
Scott Hess - ex-Googler
LGTM for sql/ I recently landed changes to enable mmap for sync ( see http://crbug.com/652359 ...
4 years, 1 month ago (2016-11-09 20:08:33 UTC) #8
DmitrySkiba
On 2016/11/09 20:08:33, Scott Hess wrote: > LGTM for sql/ > > I recently landed ...
4 years, 1 month ago (2016-11-09 20:36:47 UTC) #9
pavely
lgtm
4 years, 1 month ago (2016-11-09 23:56:08 UTC) #10
DmitrySkiba
primiano@chromium.org: Please review changes in base/trace_event/memory_usage_estimator.h
4 years, 1 month ago (2016-11-19 00:30:20 UTC) #13
Primiano Tucci (use gerrit)
base/trace_event/memory_usage_estimator.h LGTM
4 years, 1 month ago (2016-11-19 01:21:52 UTC) #17
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/2452713003/140001
4 years, 1 month ago (2016-11-21 20:09:20 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-21 20:16:57 UTC) #30
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 20:18:57 UTC) #32
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b4199f82689fd146d52d8352f4d07bd79d6cfbd6
Cr-Commit-Position: refs/heads/master@{#433623}

Powered by Google App Engine
This is Rietveld 408576698