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

Issue 2381083003: The TRACE_LINK_IDS macro (Closed)

Created:
4 years, 2 months ago by chiniforooshan
Modified:
4 years, 2 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, dproy
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

The TRACE_LINK_IDS macro We would like to be able to make two event IDs identical; so, e.g. we can do something like the following: TRACE_EVENT_ASYNC_BEGIN0("cat", "an_async_event", "0x1000"); TRACE_EVENT_LINK_IDS("cat", "a_link_event", "0x1000", "0x2000"); TRACE_EVENT_ASYNC_END("cat", "an_async_event", "0x2000"); This was done in https://codereview.chromium.org/2142023003. But, in that patch, I misused the "bind_id" field in the implementation of the macro to avoid introducing a new field. That field overwriting caused some confusions because "bind_id" was introduced for flow events. This patch fixes the "bind_id" misusage. Also, it makes sure that the TRACE_ID_LOCAL and TRACE_ID_GLOBAL macros that were introduced in https://codereview.chromium.org/2253973003 work properly when nested inside the TRACE_LINK_IDS macro. For more context about why the TRACE_LINK_IDS was introduced in the first place: https://docs.google.com/document/d/1s0DKjNJk85hDuRp5IqujwZvPML-MPsyAtDeksMwBw7s BUG=catapult:#2465 Committed: https://crrev.com/ecfbdf571cc36bc1f9282032a27177d482202580 Cr-Commit-Position: refs/heads/master@{#425069}

Patch Set 1 #

Total comments: 11

Patch Set 2 : comments #

Patch Set 3 : TracedValue -> CTTF #

Total comments: 4

Patch Set 4 : comments #

Total comments: 1

Patch Set 5 : comments #

Patch Set 6 : fix the debug build #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -49 lines) Patch
M base/trace_event/common/trace_event_common.h View 2 chunks +4 lines, -4 lines 0 comments Download
M base/trace_event/trace_event.h View 1 2 3 4 5 6 3 chunks +14 lines, -20 lines 0 comments Download
M base/trace_event/trace_event_impl.cc View 1 2 3 4 4 chunks +40 lines, -2 lines 0 comments Download
M base/trace_event/trace_event_unittest.cc View 1 2 3 4 5 6 3 chunks +62 lines, -23 lines 0 comments Download
M tools/gn/bootstrap/bootstrap.py View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 40 (21 generated)
chiniforooshan
PTAL
4 years, 2 months ago (2016-09-29 19:46:42 UTC) #4
caseq
lgtm % comment https://codereview.chromium.org/2381083003/diff/1/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/2381083003/diff/1/base/trace_event/trace_event.h#newcode579 base/trace_event/trace_event.h:579: std::unique_ptr<base::trace_event::TracedValue> dict_value() const { Let's move ...
4 years, 2 months ago (2016-10-01 01:33:53 UTC) #10
Primiano Tucci (use gerrit)
I suggest sanity check this with oysteine@ who knows all the quirks about these includes. ...
4 years, 2 months ago (2016-10-01 01:50:00 UTC) #12
chiniforooshan
+Nico for base/BUILD.gn +Oystein: Could you please sanity check this change? Thanks a lot! https://codereview.chromium.org/2381083003/diff/1/base/trace_event/trace_event.h ...
4 years, 2 months ago (2016-10-03 18:12:19 UTC) #14
Nico
base/BUILD.gn lgtm
4 years, 2 months ago (2016-10-03 19:01:43 UTC) #15
chiniforooshan
4 years, 2 months ago (2016-10-04 15:39:08 UTC) #16
chiniforooshan
On 2016/10/04 15:39:08, chiniforooshan wrote: ping
4 years, 2 months ago (2016-10-06 14:39:56 UTC) #17
Primiano Tucci (use gerrit)
LGTM with some comments I think you need to update also tools/gn/bootstrap/bootstrap.py Please can you ...
4 years, 2 months ago (2016-10-06 16:28:27 UTC) #18
Primiano Tucci (use gerrit)
Ah, also +fadi for common/trace_event_common.h to make sure this isn't somehow breaking tracing in v8.
4 years, 2 months ago (2016-10-06 16:30:01 UTC) #20
oystein (OOO til 10th of July)
https://codereview.chromium.org/2381083003/diff/60001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/2381083003/diff/60001/base/BUILD.gn#newcode941 base/BUILD.gn:941: "trace_event/trace_event.cc", Why not add the function to trace_event_impl.cc? (I ...
4 years, 2 months ago (2016-10-06 18:40:43 UTC) #21
oystein (OOO til 10th of July)
On 2016/10/06 18:40:43, oystein wrote: > https://codereview.chromium.org/2381083003/diff/60001/base/BUILD.gn > File base/BUILD.gn (right): > > https://codereview.chromium.org/2381083003/diff/60001/base/BUILD.gn#newcode941 > ...
4 years, 2 months ago (2016-10-06 18:44:37 UTC) #22
chiniforooshan
primiano: (changing the public Chrome tracing doc) will update the doc before landing this CL. ...
4 years, 2 months ago (2016-10-06 20:20:04 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2381083003/80001
4 years, 2 months ago (2016-10-11 15:17:32 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/84091)
4 years, 2 months ago (2016-10-11 15:36:28 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2381083003/100001
4 years, 2 months ago (2016-10-11 15:56:12 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/158008)
4 years, 2 months ago (2016-10-11 16:16:36 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2381083003/120001
4 years, 2 months ago (2016-10-13 15:49:11 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-13 17:04:07 UTC) #38
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 17:05:36 UTC) #40
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ecfbdf571cc36bc1f9282032a27177d482202580
Cr-Commit-Position: refs/heads/master@{#425069}

Powered by Google App Engine
This is Rietveld 408576698