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

Issue 354043003: Add support for logging information about mojo messages retrieved by the mojo debugger (Closed)

Created:
6 years, 6 months ago by ananta
Modified:
6 years, 5 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

Add support for logging information about mojo messages retrieved by the mojo debugger from the message pipes. This includes the following:- 1. Number of bytes in the message. 2. Number of fields in the message. 3. The message id. 4. The request id of the message. 5. Whether the message expects a response message. 6. Whether the message is a response message. 7. The URL of the service. We also intercept the first message pipe which is used for vending services in the debugger. Support for tracing additional information will be added as needed. BUG=360188 TBR=viettrungluu Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282417

Patch Set 1 #

Patch Set 2 : Added common.h and updated mojo.gyp #

Patch Set 3 : Fixed indentation #

Total comments: 2

Patch Set 4 : Code review comments #

Total comments: 27

Patch Set 5 : Code review comments and interception of first message pipe #

Patch Set 6 : Removed for loop #

Patch Set 7 : Validate the message #

Patch Set 8 : Format change #

Patch Set 9 : Fixed build errors #

Patch Set 10 : Intercept the first set of pipes #

Total comments: 2

Patch Set 11 : Formatting improvements #

Patch Set 12 : Presubmit warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -110 lines) Patch
M mojo/mojo.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A mojo/spy/common.h View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
M mojo/spy/spy.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +113 lines, -12 lines 0 comments Download
M mojo/spy/test/spy_repl_test.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +96 lines, -96 lines 0 comments Download
M mojo/spy/websocket_server.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +15 lines, -0 lines 0 comments Download
M mojo/spy/websocket_server.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +46 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
ananta
6 years, 6 months ago (2014-06-26 20:48:18 UTC) #1
cpu_(ooo_6.6-7.5)
adding vtl
6 years, 6 months ago (2014-06-27 01:35:31 UTC) #2
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/354043003/diff/40001/mojo/spy/websocket_server.cc File mojo/spy/websocket_server.cc (right): https://codereview.chromium.org/354043003/diff/40001/mojo/spy/websocket_server.cc#newcode44 mojo/spy/websocket_server.cc:44: assume you have: bool WebSocketServer::connected() const { return connection_id_ ...
6 years, 6 months ago (2014-06-27 01:44:06 UTC) #3
viettrungluu
https://codereview.chromium.org/354043003/diff/60001/mojo/spy/common.h File mojo/spy/common.h (right): https://codereview.chromium.org/354043003/diff/60001/mojo/spy/common.h#newcode8 mojo/spy/common.h:8: #include "base/basictypes.h" You should probably only include <stdint.h> instead. ...
6 years, 5 months ago (2014-06-30 19:16:55 UTC) #4
ananta
https://codereview.chromium.org/354043003/diff/40001/mojo/spy/websocket_server.cc File mojo/spy/websocket_server.cc (right): https://codereview.chromium.org/354043003/diff/40001/mojo/spy/websocket_server.cc#newcode44 mojo/spy/websocket_server.cc:44: On 2014/06/27 01:44:06, cpu wrote: > assume you have: ...
6 years, 5 months ago (2014-07-03 00:04:40 UTC) #5
ananta
https://codereview.chromium.org/354043003/diff/60001/mojo/spy/spy.cc File mojo/spy/spy.cc (right): https://codereview.chromium.org/354043003/diff/60001/mojo/spy/spy.cc#newcode131 mojo/spy/spy.cc:131: reinterpret_cast<mojo::MojoMessageData*>(data); On 2014/06/30 19:16:54, viettrungluu wrote: > static_cast > ...
6 years, 5 months ago (2014-07-03 00:57:24 UTC) #6
ananta
https://codereview.chromium.org/354043003/diff/60001/mojo/spy/websocket_server.cc File mojo/spy/websocket_server.cc (right): https://codereview.chromium.org/354043003/diff/60001/mojo/spy/websocket_server.cc#newcode67 mojo/spy/websocket_server.cc:67: message_header.num_fields == 3 ? message_header.request_id : -1, On 2014/07/03 ...
6 years, 5 months ago (2014-07-09 02:33:56 UTC) #7
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/354043003/diff/180001/mojo/spy/websocket_server.cc File mojo/spy/websocket_server.cc (right): https://codereview.chromium.org/354043003/diff/180001/mojo/spy/websocket_server.cc#newcode30 mojo/spy/websocket_server.cc:30: "Message Type: %s\n"\ for this to come out properly ...
6 years, 5 months ago (2014-07-09 18:18:45 UTC) #8
ananta
https://codereview.chromium.org/354043003/diff/180001/mojo/spy/websocket_server.cc File mojo/spy/websocket_server.cc (right): https://codereview.chromium.org/354043003/diff/180001/mojo/spy/websocket_server.cc#newcode30 mojo/spy/websocket_server.cc:30: "Message Type: %s\n"\ On 2014/07/09 18:18:45, cpu wrote: > ...
6 years, 5 months ago (2014-07-09 21:24:55 UTC) #9
cpu_(ooo_6.6-7.5)
lgtm
6 years, 5 months ago (2014-07-10 02:01:20 UTC) #10
ananta
TBR'ing vtl. Will address comments in a follow up.
6 years, 5 months ago (2014-07-10 02:20:35 UTC) #11
ananta
The CQ bit was checked by ananta@chromium.org
6 years, 5 months ago (2014-07-10 02:20:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ananta@chromium.org/354043003/200001
6 years, 5 months ago (2014-07-10 02:22:54 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-10 04:51:36 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-10 04:54:57 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/79051)
6 years, 5 months ago (2014-07-10 04:54:58 UTC) #16
ananta
The CQ bit was checked by ananta@chromium.org
6 years, 5 months ago (2014-07-10 18:20:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ananta@chromium.org/354043003/220001
6 years, 5 months ago (2014-07-10 18:21:15 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 20:27:44 UTC) #19
Message was sent while issue was closed.
Change committed as 282417

Powered by Google App Engine
This is Rietveld 408576698