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

Issue 8189003: Send important client side event information to the server. (Closed)

Created:
9 years, 2 months ago by lipalani1
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), tim (not reviewing), idana
Visibility:
Public.

Description

Send important client side event information to the server. We create a class called DebugInfoEventListener which implements 2 interfaces. one being the syncmanager::observer to observe events from syncmanager. The other being DebugInfoGetter so that syncer can call this class to give the debug information in protobuf format. The implementation of this class uses a queue. And it limits the number of events to 6. if more than 6 events are in the queue we delete the oldest event. Also we send this information to the server only once per sync cycle during the first getudpdates command. also includes the unit test. TBR=cmp@chromium.org for the SI relaxation. BUG=100058 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105667 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105683

Patch Set 1 : For review. #

Patch Set 2 : For review #

Total comments: 30

Patch Set 3 : For review. #

Total comments: 22

Patch Set 4 : Upload before commit. #

Patch Set 5 : Upload before commit. #

Patch Set 6 : Upload before commit. #

Patch Set 7 : Upload before commit. #

Patch Set 8 : Upload before commit #

Patch Set 9 : Upload before commit. #

Patch Set 10 : Upload before commit. #

Patch Set 11 : Upload before commit. #

Patch Set 12 : upload before commit. #

Patch Set 13 : upload before commit. #

Patch Set 14 : try jobs #

Patch Set 15 : try jobs #

Patch Set 16 : upload before commit. #

Patch Set 17 : committing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+428 lines, -12 lines) Patch
M chrome/browser/sync/engine/download_updates_command.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/download_updates_command.cc View 1 2 3 4 5 3 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/download_updates_command_unittest.cc View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/sync_scheduler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/sync_scheduler_whitebox_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/syncer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/sync/internal_api/debug_info_event_listener.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/browser/sync/internal_api/debug_info_event_listener.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +118 lines, -0 lines 0 comments Download
A chrome/browser/sync/internal_api/debug_info_event_listener_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.cc View 1 2 3 4 5 6 5 chunks +10 lines, -1 line 0 comments Download
A chrome/browser/sync/protocol/client_debug_info.proto View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/browser/sync/protocol/sync.proto View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/protocol/sync_proto.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/sessions/session_state.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/sync/sessions/status_controller.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/sessions/status_controller.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/sync/sessions/sync_session_context.h View 1 2 4 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/sync/sessions/sync_session_context.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/sync/sessions/sync_session_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/engine/syncer_command_test.h View 1 2 3 4 5 6 4 chunks +17 lines, -1 line 0 comments Download
A chrome/browser/sync/test/engine/syncer_command_test.cc View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M tools/perf_expectations/perf_expectations.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
lipalani1
Please review.
9 years, 2 months ago (2011-10-13 00:34:44 UTC) #1
tim (not reviewing)
Looking. Have you seen base/memory/mru_cache.h ?
9 years, 2 months ago (2011-10-13 00:41:30 UTC) #2
lipalani
we dont need mru at least for now. we dont care about most recently used ...
9 years, 2 months ago (2011-10-13 00:45:52 UTC) #3
tim (not reviewing)
http://codereview.chromium.org/8189003/diff/6001/chrome/browser/sync/engine/download_updates_command.cc File chrome/browser/sync/engine/download_updates_command.cc (right): http://codereview.chromium.org/8189003/diff/6001/chrome/browser/sync/engine/download_updates_command.cc#newcode88 chrome/browser/sync/engine/download_updates_command.cc:88: AppendClientDebugInfoIfNeeded(session, &client_to_server_message); This method should take a DebugInfo*, not ...
9 years, 2 months ago (2011-10-13 16:04:14 UTC) #4
tim (not reviewing)
http://codereview.chromium.org/8189003/diff/6001/chrome/browser/sync/engine/download_updates_command.cc File chrome/browser/sync/engine/download_updates_command.cc (right): http://codereview.chromium.org/8189003/diff/6001/chrome/browser/sync/engine/download_updates_command.cc#newcode138 chrome/browser/sync/engine/download_updates_command.cc:138: if (!session->status_controller()->debug_info_sent()) { It occurred to me that maybe ...
9 years, 2 months ago (2011-10-13 16:08:22 UTC) #5
lipalani1
PTAL http://codereview.chromium.org/8189003/diff/6001/chrome/browser/sync/engine/download_updates_command.cc File chrome/browser/sync/engine/download_updates_command.cc (right): http://codereview.chromium.org/8189003/diff/6001/chrome/browser/sync/engine/download_updates_command.cc#newcode88 chrome/browser/sync/engine/download_updates_command.cc:88: AppendClientDebugInfoIfNeeded(session, &client_to_server_message); On 2011/10/13 16:04:14, timsteele wrote: > ...
9 years, 2 months ago (2011-10-13 21:39:18 UTC) #6
tim (not reviewing)
Will take quick look to wrap up when I get off the bus! http://codereview.chromium.org/8189003/diff/14001/chrome/browser/sync/sessions/debug_info_getter.h File ...
9 years, 2 months ago (2011-10-13 21:48:14 UTC) #7
lipalani1
Cool will do so. agree on both. Since the power is out on seattle office ...
9 years, 2 months ago (2011-10-13 22:08:06 UTC) #8
tim (not reviewing)
WIth comments from previous review and this one addressed, and a healthy try run, this ...
9 years, 2 months ago (2011-10-14 01:23:20 UTC) #9
lipalani1
Fixed all feedback. running try jobs now before commit. http://codereview.chromium.org/8189003/diff/14001/chrome/browser/sync/internal_api/debug_info_event_listener.h File chrome/browser/sync/internal_api/debug_info_event_listener.h (right): http://codereview.chromium.org/8189003/diff/14001/chrome/browser/sync/internal_api/debug_info_event_listener.h#newcode23 chrome/browser/sync/internal_api/debug_info_event_listener.h:23: ...
9 years, 2 months ago (2011-10-14 18:31:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/8189003/30001
9 years, 2 months ago (2011-10-15 04:37:01 UTC) #11
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years, 2 months ago (2011-10-15 07:53:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/8189003/30001
9 years, 2 months ago (2011-10-15 08:27:51 UTC) #13
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years, 2 months ago (2011-10-15 11:29:39 UTC) #14
cmp
9 years, 2 months ago (2011-10-15 22:25:26 UTC) #15
lgtm for sizes/chrome-si expectations change

Powered by Google App Engine
This is Rietveld 408576698