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

Issue 9389020: Add simple trace logging of received IPC messages (Closed)

Created:
8 years, 10 months ago by Rick Byers
Modified:
8 years, 10 months ago
Reviewers:
jam, jbates
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Add simple trace logging of received IPC messages Adds an entry to chrome://tracing for processing IPC messages that includes the IPC message type ID (which can be matched to a name with the ipclist tool), and in DEBUG builds (or other builds where IPC_MESSAGE_LOG_ENABLED has been set), the message name. Also adds shell_messages.h to the message generator headers (per the rules in ipc_message_macros.h) to fix broken IPC message logging. BUG=79942 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=121889

Patch Set 1 #

Total comments: 1

Patch Set 2 : Apply CL feedback from jbates #

Patch Set 3 : Fix clang build #

Total comments: 1

Patch Set 4 : Change ipclist instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -5 lines) Patch
M chrome/common/all_messages.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/tools/ipclist/ipclist.cc View 1 2 3 2 chunks +10 lines, -3 lines 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Rick Byers
John, Can you please review this tiny IPC tracing tweak for me? Thanks, Rick
8 years, 10 months ago (2012-02-13 23:09:58 UTC) #1
jbates
https://chromiumcodereview.appspot.com/9389020/diff/1/ipc/ipc_channel_proxy.cc File ipc/ipc_channel_proxy.cc (right): https://chromiumcodereview.appspot.com/9389020/diff/1/ipc/ipc_channel_proxy.cc#newcode242 ipc/ipc_channel_proxy.cc:242: std::string name = "N/A (IPC Logging disabled)"; To avoid ...
8 years, 10 months ago (2012-02-13 23:26:25 UTC) #2
Rick Byers
On 2012/02/13 23:26:25, jbates wrote: > https://chromiumcodereview.appspot.com/9389020/diff/1/ipc/ipc_channel_proxy.cc > File ipc/ipc_channel_proxy.cc (right): > > https://chromiumcodereview.appspot.com/9389020/diff/1/ipc/ipc_channel_proxy.cc#newcode242 > ...
8 years, 10 months ago (2012-02-13 23:43:53 UTC) #3
jbates
LGTM
8 years, 10 months ago (2012-02-13 23:53:43 UTC) #4
jam
http://codereview.chromium.org/9389020/diff/6/chrome/common/all_messages.h File chrome/common/all_messages.h (right): http://codereview.chromium.org/9389020/diff/6/chrome/common/all_messages.h#newcode18 chrome/common/all_messages.h:18: #include "content/shell/shell_messages.h" i think this is supposed to be ...
8 years, 10 months ago (2012-02-14 01:37:38 UTC) #5
Rick Byers
On 2012/02/14 01:37:38, John Abd-El-Malek wrote: > http://codereview.chromium.org/9389020/diff/6/chrome/common/all_messages.h > File chrome/common/all_messages.h (right): > > http://codereview.chromium.org/9389020/diff/6/chrome/common/all_messages.h#newcode18 ...
8 years, 10 months ago (2012-02-14 01:54:56 UTC) #6
Rick Byers
Ah, I see ipclist already has an 'excemptions' pattern for cases like this where a ...
8 years, 10 months ago (2012-02-14 02:27:11 UTC) #7
jam
lgtm
8 years, 10 months ago (2012-02-14 02:32:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/9389020/1007
8 years, 10 months ago (2012-02-14 14:23:23 UTC) #9
commit-bot: I haz the power
8 years, 10 months ago (2012-02-14 15:51:49 UTC) #10
Change committed as 121889

Powered by Google App Engine
This is Rietveld 408576698