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

Issue 1833573002: Move TRACE_EVENT in IPC message dispatch to add message name (Closed)

Created:
4 years, 9 months ago by ssid
Modified:
4 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@only_thread_name
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move TRACE_EVENT in IPC message dispatch to add message name The IPC message names are not displayed unless logging is enabled (debug builds) in ChannelProxy::Context::OnDispatchMessage. But the name is actually available in release build binary. Specific message names are required for memory-infra heap profiler to understand the memory usage in Chrome, since the task name just shows DispatchMessage for all ipc messages. More context: https://goo.gl/hcqY5p. This CL adds the existing names in the chrome binary to tracing when ipc category is enabled. BUG=594803 Committed: https://crrev.com/6c1dc894125c68f12d3f14065d057d29c0229860 Cr-Commit-Position: refs/heads/master@{#383546}

Patch Set 1 #

Patch Set 2 : remove previous trace event. #

Patch Set 3 : Remove patch deppendency. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -13 lines) Patch
M chrome/common/trace_event_args_whitelist.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 2 1 chunk +1 line, -12 lines 0 comments Download
M ipc/ipc_message_templates.h View 1 4 chunks +4 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 47 (19 generated)
ssid
Do you think it's a fair change given that https://chromium.googlesource.com/chromium/src/+/master/ipc/ipc_channel_proxy.cc#270 exists only on debug builds.
4 years, 9 months ago (2016-03-23 22:15:09 UTC) #2
Dmitry Skiba
I'm wondering how having trace macro there impacts performance. Because even if "ipc" tracing is ...
4 years, 9 months ago (2016-03-24 20:02:49 UTC) #4
ssid
On 2016/03/24 20:02:49, Dmitry Skiba wrote: > I'm wondering how having trace macro there impacts ...
4 years, 9 months ago (2016-03-24 21:53:16 UTC) #5
Dmitry Skiba
On 2016/03/24 21:53:16, ssid wrote: > On 2016/03/24 20:02:49, Dmitry Skiba wrote: > > I'm ...
4 years, 9 months ago (2016-03-24 22:02:30 UTC) #6
ssid
On 2016/03/24 22:02:30, Dmitry Skiba wrote: > On 2016/03/24 21:53:16, ssid wrote: > > On ...
4 years, 9 months ago (2016-03-24 23:52:07 UTC) #7
ssid
+zhenw I think you care about the number of trace events flying around in code. ...
4 years, 9 months ago (2016-03-24 23:56:56 UTC) #9
Zhen Wang
+primiano and oysteine I imagine tracing each IPC will add many events?
4 years, 9 months ago (2016-03-25 20:36:19 UTC) #12
ssid
On 2016/03/25 20:36:19, Zhen Wang wrote: > +primiano and oysteine > > I imagine tracing ...
4 years, 9 months ago (2016-03-25 20:37:59 UTC) #13
Zhen Wang
On 2016/03/25 20:37:59, ssid wrote: > On 2016/03/25 20:36:19, Zhen Wang wrote: > > +primiano ...
4 years, 9 months ago (2016-03-25 20:42:30 UTC) #14
oystein (OOO til 10th of July)
On 2016/03/25 20:42:30, Zhen Wang wrote: > On 2016/03/25 20:37:59, ssid wrote: > > On ...
4 years, 9 months ago (2016-03-25 20:48:49 UTC) #15
ssid
On 2016/03/25 20:48:49, Oystein wrote: > On 2016/03/25 20:42:30, Zhen Wang wrote: > > On ...
4 years, 9 months ago (2016-03-25 20:50:27 UTC) #16
oystein (OOO til 10th of July)
On 2016/03/25 20:50:27, ssid wrote: > On 2016/03/25 20:48:49, Oystein wrote: > > On 2016/03/25 ...
4 years, 9 months ago (2016-03-25 20:56:34 UTC) #17
ssid
+tsepez for changes in ipc/ This moves the trace event in dispatch to show better ...
4 years, 9 months ago (2016-03-25 21:31:09 UTC) #20
Tom Sepez
Are we sure there is no performance hit for doing this on every dispatch?
4 years, 9 months ago (2016-03-25 21:33:15 UTC) #21
oystein (OOO til 10th of July)
chrome/common/trace_event_args_whitelist.cc lgtm
4 years, 9 months ago (2016-03-25 21:33:47 UTC) #22
ssid
On 2016/03/25 21:33:15, Tom Sepez wrote: > Are we sure there is no performance hit ...
4 years, 9 months ago (2016-03-25 21:34:04 UTC) #23
ssid
On 2016/03/25 21:33:15, Tom Sepez wrote: > Are we sure there is no performance hit ...
4 years, 9 months ago (2016-03-25 21:34:04 UTC) #24
Tom Sepez
On 2016/03/25 21:33:15, Tom Sepez wrote: > Are we sure there is no performance hit ...
4 years, 9 months ago (2016-03-25 21:36:52 UTC) #25
Tom Sepez
On 2016/03/25 21:36:52, Tom Sepez wrote: > On 2016/03/25 21:33:15, Tom Sepez wrote: > > ...
4 years, 9 months ago (2016-03-25 21:37:07 UTC) #26
Rick Byers
I don't really have much context here, so I'll leave the review to IPC owners. ...
4 years, 9 months ago (2016-03-25 21:40:15 UTC) #28
Rick Byers
On 2016/03/25 21:40:15, Rick Byers wrote: > I don't really have much context here, so ...
4 years, 9 months ago (2016-03-25 21:42:40 UTC) #30
ssid
On 2016/03/25 21:42:40, Rick Byers wrote: > On 2016/03/25 21:40:15, Rick Byers wrote: > > ...
4 years, 9 months ago (2016-03-25 21:43:47 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1833573002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1833573002/40001
4 years, 9 months ago (2016-03-25 21:44:11 UTC) #33
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/40839)
4 years, 9 months ago (2016-03-25 21:57:58 UTC) #35
commit-bot: I haz the power
This CL has an open dependency (Issue 1814083002 Patch 100001). Please resolve the dependency and ...
4 years, 9 months ago (2016-03-26 08:13:25 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1833573002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1833573002/80001
4 years, 8 months ago (2016-03-28 19:51:34 UTC) #42
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 8 months ago (2016-03-28 19:57:02 UTC) #44
commit-bot: I haz the power
4 years, 8 months ago (2016-03-28 19:58:12 UTC) #46
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6c1dc894125c68f12d3f14065d057d29c0229860
Cr-Commit-Position: refs/heads/master@{#383546}

Powered by Google App Engine
This is Rietveld 408576698