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

Issue 9663023: Log the sync communication that happens between client and server. (Closed)

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

Description

This would allow the developers to view the client/server sync traffic. In retail builds this code would be compiled out. To view the traffic you have to run chrome with the flag: --vmodule=traffic_logger=1. BUG=117615 TEST=git-cl try --email=foo Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128277

Patch Set 1 #

Patch Set 2 : For review. #

Total comments: 26

Patch Set 3 : for review. #

Patch Set 4 : For review. #

Patch Set 5 : For review. #

Total comments: 26

Patch Set 6 : for review. #

Patch Set 7 : For review. #

Patch Set 8 : For review. #

Patch Set 9 : For review. #

Patch Set 10 : For review. #

Total comments: 8

Patch Set 11 : For review. #

Patch Set 12 : For review. #

Total comments: 12

Patch Set 13 : For review. #

Patch Set 14 : For review. #

Total comments: 12

Patch Set 15 : for review. #

Patch Set 16 : For review. #

Total comments: 5

Patch Set 17 : For committing. #

Patch Set 18 : For committing #

Patch Set 19 : For committing. #

Patch Set 20 : For committing. #

Patch Set 21 : For committing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+423 lines, -2 lines) Patch
M sync/engine/syncer_proto_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +4 lines, -0 lines 0 comments Download
M sync/engine/syncer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download
A sync/engine/traffic_logger.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +26 lines, -0 lines 0 comments Download
A sync/engine/traffic_logger.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +50 lines, -0 lines 0 comments Download
M sync/protocol/proto_enum_conversions.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M sync/protocol/proto_enum_conversions.cc View 1 2 3 4 5 6 7 8 1 chunk +53 lines, -0 lines 0 comments Download
M sync/protocol/proto_enum_conversions_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +27 lines, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions.h View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +178 lines, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +62 lines, -0 lines 0 comments Download
M sync/sync.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
lipalani1
Please review. bug 117612 was found while developing the feature and I found it easier ...
8 years, 9 months ago (2012-03-10 00:26:56 UTC) #1
akalin
http://codereview.chromium.org/9663023/diff/2009/chrome/browser/sync/engine/traffic_logger.cc File chrome/browser/sync/engine/traffic_logger.cc (right): http://codereview.chromium.org/9663023/diff/2009/chrome/browser/sync/engine/traffic_logger.cc#newcode18 chrome/browser/sync/engine/traffic_logger.cc:18: template<class T> space before < http://codereview.chromium.org/9663023/diff/2009/chrome/browser/sync/engine/traffic_logger.cc#newcode20 chrome/browser/sync/engine/traffic_logger.cc:20: DictionaryValue*(to_dictionary_value)(const T&, ...
8 years, 9 months ago (2012-03-13 00:20:43 UTC) #2
lipalani1
PTAL. http://codereview.chromium.org/9663023/diff/2009/chrome/browser/sync/engine/traffic_logger.cc File chrome/browser/sync/engine/traffic_logger.cc (right): http://codereview.chromium.org/9663023/diff/2009/chrome/browser/sync/engine/traffic_logger.cc#newcode18 chrome/browser/sync/engine/traffic_logger.cc:18: template<class T> On 2012/03/13 00:20:43, akalin wrote: > ...
8 years, 9 months ago (2012-03-13 21:32:39 UTC) #3
akalin
okay, few more http://codereview.chromium.org/9663023/diff/7002/chrome/browser/sync/engine/traffic_logger.cc File chrome/browser/sync/engine/traffic_logger.cc (right): http://codereview.chromium.org/9663023/diff/7002/chrome/browser/sync/engine/traffic_logger.cc#newcode29 chrome/browser/sync/engine/traffic_logger.cc:29: VLOG(1) << "\n" << message; may ...
8 years, 9 months ago (2012-03-14 00:17:30 UTC) #4
lipalani1
PTAL. the next patch is in flight. it would store this in memory. http://codereview.chromium.org/9663023/diff/7002/chrome/browser/sync/engine/traffic_logger.cc File ...
8 years, 9 months ago (2012-03-15 00:02:13 UTC) #5
akalin
btw is this intended to be compiled out in release builds? If so, you should ...
8 years, 9 months ago (2012-03-15 00:30:09 UTC) #6
lipalani1
Fixed to use DVLOG. PTAL.
8 years, 9 months ago (2012-03-15 01:23:26 UTC) #7
tim (not reviewing)
(drive-by comment, not reviewing) I like the addition of logging. I think everyone here is ...
8 years, 9 months ago (2012-03-15 04:10:30 UTC) #8
akalin
Can you rebase and reupload? Thanks!
8 years, 9 months ago (2012-03-15 19:18:20 UTC) #9
lipalani1
PTAL. Tim - This patch only adds logging to debug builds and will not show ...
8 years, 9 months ago (2012-03-16 00:09:52 UTC) #10
akalin
few more comments -- sorry, forgot about unit tests http://codereview.chromium.org/9663023/diff/19001/sync/engine/traffic_logger.cc File sync/engine/traffic_logger.cc (right): http://codereview.chromium.org/9663023/diff/19001/sync/engine/traffic_logger.cc#newcode28 sync/engine/traffic_logger.cc:28: ...
8 years, 9 months ago (2012-03-16 21:28:27 UTC) #11
lipalani1
PTAL. http://codereview.chromium.org/9663023/diff/19001/sync/engine/traffic_logger.cc File sync/engine/traffic_logger.cc (right): http://codereview.chromium.org/9663023/diff/19001/sync/engine/traffic_logger.cc#newcode28 sync/engine/traffic_logger.cc:28: DVLOG(1) << "\n" << description << message; On ...
8 years, 9 months ago (2012-03-17 01:29:50 UTC) #12
akalin
Few more http://codereview.chromium.org/9663023/diff/26001/sync/engine/syncer_proto_util.cc File sync/engine/syncer_proto_util.cc (right): http://codereview.chromium.org/9663023/diff/26001/sync/engine/syncer_proto_util.cc#newcode8 sync/engine/syncer_proto_util.cc:8: #include "base/json/json_writer.h" remove this unneeded include http://codereview.chromium.org/9663023/diff/26001/sync/engine/traffic_logger.cc ...
8 years, 9 months ago (2012-03-17 01:55:05 UTC) #13
lipalani1
PTAL. http://codereview.chromium.org/9663023/diff/26001/sync/engine/syncer_proto_util.cc File sync/engine/syncer_proto_util.cc (right): http://codereview.chromium.org/9663023/diff/26001/sync/engine/syncer_proto_util.cc#newcode8 sync/engine/syncer_proto_util.cc:8: #include "base/json/json_writer.h" On 2012/03/17 01:55:05, akalin wrote: > ...
8 years, 9 months ago (2012-03-19 19:24:37 UTC) #14
akalin
Few more test comments. Almost there! http://codereview.chromium.org/9663023/diff/31001/sync/protocol/proto_value_conversions_unittest.cc File sync/protocol/proto_value_conversions_unittest.cc (right): http://codereview.chromium.org/9663023/diff/31001/sync/protocol/proto_value_conversions_unittest.cc#newcode191 sync/protocol/proto_value_conversions_unittest.cc:191: void VerifySpecifics(DictionaryValue* value, ...
8 years, 9 months ago (2012-03-19 21:31:38 UTC) #15
lipalani1
PTAL. http://codereview.chromium.org/9663023/diff/31001/sync/protocol/proto_value_conversions_unittest.cc File sync/protocol/proto_value_conversions_unittest.cc (right): http://codereview.chromium.org/9663023/diff/31001/sync/protocol/proto_value_conversions_unittest.cc#newcode191 sync/protocol/proto_value_conversions_unittest.cc:191: void VerifySpecifics(DictionaryValue* value, On 2012/03/19 21:31:38, akalin wrote: ...
8 years, 9 months ago (2012-03-20 19:24:40 UTC) #16
akalin
LGTM after nits http://codereview.chromium.org/9663023/diff/37001/sync/engine/traffic_logger.cc File sync/engine/traffic_logger.cc (right): http://codereview.chromium.org/9663023/diff/37001/sync/engine/traffic_logger.cc#newcode24 sync/engine/traffic_logger.cc:24: scoped_ptr<DictionaryValue> value((*to_dictionary_value)(data, better to indent like: ...
8 years, 9 months ago (2012-03-20 19:38:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/9663023/39004
8 years, 9 months ago (2012-03-20 20:04:24 UTC) #18
commit-bot: I haz the power
Try job failure for 9663023-39004 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-03-20 20:31:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/9663023/37012
8 years, 9 months ago (2012-03-21 17:34:07 UTC) #20
commit-bot: I haz the power
Try job failure for 9663023-37012 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-03-21 18:01:23 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/9663023/62001
8 years, 9 months ago (2012-03-21 20:47:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/9663023/56002
8 years, 9 months ago (2012-03-22 18:48:10 UTC) #23
commit-bot: I haz the power
8 years, 9 months ago (2012-03-22 19:56:23 UTC) #24
Change committed as 128277

Powered by Google App Engine
This is Rietveld 408576698