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

Issue 254473008: sync: Introduce classes for per-type counters (Closed)

Created:
6 years, 8 months ago by rlarocque
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: Introduce classes for per-type counters Introduces the classes required to support per-type debug information. This system will eventually replace much of the StatusController and ModelNeutralState. Adds three counter objects. There is one for counters incremented during a GetUpdates, one for counters incremented during a commit, and one for "status" indicators like the total number of sync entities. Adds the DirectoryTypeDebugInfoEmitter, which will manage these counters. There will be one instance of this object per enabled directory-style sync ModelType. It owns the counters that will be updated by the CommitContributors and UpdateHandlers. It also collaborates with the ModelTypeRegistry to allow these CommitContributors and UpdateHandlers to notify observers of updated counter state. Adds the TypeDebugInfoObserver, the interface for classes that listen for counter updates. At the moment, this code won't actually do much. The counters are never incrememnted, no observers register for counter change events, and no such events are generated. Those pieces will be added in future commits. BUG=328606 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266991

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Moving some files #

Patch Set 4 : Move another file #

Total comments: 10

Patch Set 5 : Review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -79 lines) Patch
M sync/engine/directory_type_debug_info_emitter.h View 1 2 1 chunk +0 lines, -34 lines 0 comments Download
M sync/engine/directory_type_debug_info_emitter.cc View 1 2 1 chunk +0 lines, -26 lines 0 comments Download
A sync/internal_api/public/sessions/commit_counters.h View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A sync/internal_api/public/sessions/commit_counters.cc View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A sync/internal_api/public/sessions/status_counters.h View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A sync/internal_api/public/sessions/status_counters.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A sync/internal_api/public/sessions/type_debug_info_observer.h View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
A + sync/internal_api/public/sessions/type_debug_info_observer.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A sync/internal_api/public/sessions/update_counters.h View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
A sync/internal_api/public/sessions/update_counters.cc View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
A sync/sessions/directory_type_debug_info_emitter.h View 1 2 3 4 1 chunk +96 lines, -0 lines 0 comments Download
A sync/sessions/directory_type_debug_info_emitter.cc View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
M sync/sessions/model_type_registry.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M sync/sessions/model_type_registry.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M sync/sync_core.gypi View 1 2 6 chunks +9 lines, -9 lines 0 comments Download
M sync/sync_internal_api.gypi View 1 2 3 2 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
rlarocque
Please review.
6 years, 8 months ago (2014-04-24 21:40:29 UTC) #1
tim (not reviewing)
On 2014/04/24 21:40:29, rlarocque wrote: > Please review. All of the StatusController / ModelNeutralState stuff ...
6 years, 8 months ago (2014-04-25 16:23:15 UTC) #2
rlarocque
On 2014/04/25 16:23:15, timsteele wrote: > On 2014/04/24 21:40:29, rlarocque wrote: > > Please review. ...
6 years, 8 months ago (2014-04-25 17:28:05 UTC) #3
tim (not reviewing)
On 2014/04/25 17:28:05, rlarocque wrote: > On 2014/04/25 16:23:15, timsteele wrote: > > On 2014/04/24 ...
6 years, 7 months ago (2014-04-28 17:18:08 UTC) #4
rlarocque
Patch updated. PTAL.
6 years, 7 months ago (2014-04-28 21:15:59 UTC) #5
tim (not reviewing)
https://codereview.chromium.org/254473008/diff/50001/sync/engine/DEPS File sync/engine/DEPS (right): https://codereview.chromium.org/254473008/diff/50001/sync/engine/DEPS#newcode3 sync/engine/DEPS:3: "+sync/internal_api/public", Unnecessary? https://codereview.chromium.org/254473008/diff/50001/sync/internal_api/public/sessions/commit_counters.h File sync/internal_api/public/sessions/commit_counters.h (right): https://codereview.chromium.org/254473008/diff/50001/sync/internal_api/public/sessions/commit_counters.h#newcode23 sync/internal_api/public/sessions/commit_counters.h:23: int ...
6 years, 7 months ago (2014-04-28 21:26:21 UTC) #6
rlarocque
Patch updated. PTAL. https://codereview.chromium.org/254473008/diff/50001/sync/engine/DEPS File sync/engine/DEPS (right): https://codereview.chromium.org/254473008/diff/50001/sync/engine/DEPS#newcode3 sync/engine/DEPS:3: "+sync/internal_api/public", On 2014/04/28 21:26:21, timsteele wrote: ...
6 years, 7 months ago (2014-04-28 21:59:59 UTC) #7
tim (not reviewing)
LGTM
6 years, 7 months ago (2014-04-28 22:03:38 UTC) #8
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-04-28 22:05:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/254473008/70001
6 years, 7 months ago (2014-04-28 22:06:42 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 22:09:49 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_gn_rel
6 years, 7 months ago (2014-04-28 22:09:50 UTC) #12
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-04-29 01:16:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/254473008/70001
6 years, 7 months ago (2014-04-29 01:16:39 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 02:12:44 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 7 months ago (2014-04-29 02:12:44 UTC) #16
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-04-29 17:18:27 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/254473008/70001
6 years, 7 months ago (2014-04-29 17:19:01 UTC) #18
commit-bot: I haz the power
6 years, 7 months ago (2014-04-29 23:16:37 UTC) #19
Message was sent while issue was closed.
Change committed as 266991

Powered by Google App Engine
This is Rietveld 408576698