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

Issue 2253973003: Add an explicit way of making IDs local or global (Closed)

Created:
4 years, 4 months ago by chiniforooshan
Modified:
4 years, 3 months ago
CC:
chromium-reviews, petrcermak, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an explicit way of making IDs local or global Two macros are added: TRACE_GLOBAL_ID and TRACE_LOCAL_ID. If these are used in trace events, a boolean "id_is_global" field will be added to the produced JSON record. We add the above-mentioned macros only in base. We will add them to other subsystems (V8, skia, WebKit, ...) separately, when needed. This patch also removes the DONT_MANGLE macros inside object and context events; object and context events are process-local by default and mangling or not mangling them should not change anything. Design doc: https://docs.google.com/document/d/1s0DKjNJk85hDuRp5IqujwZvPML-MPsyAtDeksMwBw7s/edit#heading=h.5lebrnsh6g7g BUG=catapult:#2465 Committed: https://crrev.com/38e3c2977c913973fc7237089560ce7fc0822bc4 Cr-Commit-Position: refs/heads/master@{#419777}

Patch Set 1 #

Total comments: 8

Patch Set 2 : comments #

Total comments: 8

Patch Set 3 : comments #

Patch Set 4 : comments #

Patch Set 5 : comments #

Total comments: 6

Patch Set 6 : comments #

Patch Set 7 : comments #

Patch Set 8 : lints #

Total comments: 8

Patch Set 9 : comments #

Patch Set 10 : versioning the id field #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -111 lines) Patch
M base/trace_event/common/trace_event_common.h View 1 2 3 4 5 6 7 8 9 3 chunks +23 lines, -21 lines 0 comments Download
M base/trace_event/trace_event.h View 1 2 3 4 5 6 8 chunks +117 lines, -88 lines 0 comments Download
M base/trace_event/trace_event_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +25 lines, -2 lines 0 comments Download
M base/trace_event/trace_event_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +53 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (15 generated)
chiniforooshan
As per offline discussions and comments in https://codereview.chromium.org/2162183002, this patch introduces macros for creating local/global ...
4 years, 4 months ago (2016-08-17 19:19:24 UTC) #3
Sami
https://codereview.chromium.org/2253973003/diff/1/base/trace_event/common/trace_event_common.h File base/trace_event/common/trace_event_common.h (right): https://codereview.chromium.org/2253973003/diff/1/base/trace_event/common/trace_event_common.h#newcode1085 base/trace_event/common/trace_event_common.h:1085: #define TRACE_EVENT_FLAG_MANGLE_ID (static_cast<unsigned int>(1 << 2)) Could you add ...
4 years, 4 months ago (2016-08-18 17:37:32 UTC) #4
chiniforooshan
https://codereview.chromium.org/2253973003/diff/1/base/trace_event/common/trace_event_common.h File base/trace_event/common/trace_event_common.h (right): https://codereview.chromium.org/2253973003/diff/1/base/trace_event/common/trace_event_common.h#newcode1085 base/trace_event/common/trace_event_common.h:1085: #define TRACE_EVENT_FLAG_MANGLE_ID (static_cast<unsigned int>(1 << 2)) On 2016/08/18 17:37:32, ...
4 years, 4 months ago (2016-08-18 18:09:41 UTC) #5
Sami
https://codereview.chromium.org/2253973003/diff/1/base/trace_event/common/trace_event_common.h File base/trace_event/common/trace_event_common.h (right): https://codereview.chromium.org/2253973003/diff/1/base/trace_event/common/trace_event_common.h#newcode1096 base/trace_event/common/trace_event_common.h:1096: #define TRACE_EVENT_FLAG_HAS_GLOBAL_ID (static_cast<unsigned int>(1 << 1 | \ Could ...
4 years, 4 months ago (2016-08-19 16:47:19 UTC) #6
chiniforooshan
https://codereview.chromium.org/2253973003/diff/1/base/trace_event/common/trace_event_common.h File base/trace_event/common/trace_event_common.h (right): https://codereview.chromium.org/2253973003/diff/1/base/trace_event/common/trace_event_common.h#newcode1096 base/trace_event/common/trace_event_common.h:1096: #define TRACE_EVENT_FLAG_HAS_GLOBAL_ID (static_cast<unsigned int>(1 << 1 | \ On ...
4 years, 4 months ago (2016-08-19 17:35:18 UTC) #7
Sami
https://codereview.chromium.org/2253973003/diff/1/base/trace_event/common/trace_event_common.h File base/trace_event/common/trace_event_common.h (right): https://codereview.chromium.org/2253973003/diff/1/base/trace_event/common/trace_event_common.h#newcode1096 base/trace_event/common/trace_event_common.h:1096: #define TRACE_EVENT_FLAG_HAS_GLOBAL_ID (static_cast<unsigned int>(1 << 1 | \ On ...
4 years, 3 months ago (2016-08-22 14:46:42 UTC) #8
caseq
https://codereview.chromium.org/2253973003/diff/20001/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/2253973003/diff/20001/base/trace_event/trace_event.h#newcode81 base/trace_event/trace_event.h:81: #define INTERNAL_SET_ID_FLAGS(flags, id_bits) \ INTERNAL_SET_ID_BITS() perhaps? https://codereview.chromium.org/2253973003/diff/20001/base/trace_event/trace_event.h#newcode82 base/trace_event/trace_event.h:82: flags ...
4 years, 3 months ago (2016-08-22 19:48:52 UTC) #9
chiniforooshan
https://codereview.chromium.org/2253973003/diff/20001/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/2253973003/diff/20001/base/trace_event/trace_event.h#newcode81 base/trace_event/trace_event.h:81: #define INTERNAL_SET_ID_FLAGS(flags, id_bits) \ On 2016/08/22 19:48:51, caseq wrote: ...
4 years, 3 months ago (2016-08-23 19:54:53 UTC) #10
chiniforooshan
https://codereview.chromium.org/2253973003/diff/1/base/trace_event/common/trace_event_common.h File base/trace_event/common/trace_event_common.h (right): https://codereview.chromium.org/2253973003/diff/1/base/trace_event/common/trace_event_common.h#newcode1096 base/trace_event/common/trace_event_common.h:1096: #define TRACE_EVENT_FLAG_HAS_GLOBAL_ID (static_cast<unsigned int>(1 << 1 | \ On ...
4 years, 3 months ago (2016-08-23 19:59:08 UTC) #11
Sami
On 2016/08/23 19:59:08, chiniforooshan wrote: > Yeah, that way the ID of flow/async events won't ...
4 years, 3 months ago (2016-08-24 13:56:05 UTC) #12
chiniforooshan
On 2016/08/24 13:56:05, Sami wrote: > On 2016/08/23 19:59:08, chiniforooshan wrote: > > Yeah, that ...
4 years, 3 months ago (2016-08-26 14:42:59 UTC) #13
caseq
On 2016/08/23 19:54:53, chiniforooshan wrote: > Is there anything wrong with using a boolean here? ...
4 years, 3 months ago (2016-08-29 23:39:26 UTC) #14
chiniforooshan
+primiano for owners approval. Thanks Andrey. Now, I write the new IDs under "local_id" and ...
4 years, 3 months ago (2016-08-30 17:40:46 UTC) #16
Primiano Tucci (use gerrit)
Damn, apparently I haven't been on vacation long enough :P Joking aside, conceptually this looks ...
4 years, 3 months ago (2016-08-31 19:11:22 UTC) #17
caseq
https://codereview.chromium.org/2253973003/diff/140001/base/trace_event/common/trace_event_common.h File base/trace_event/common/trace_event_common.h (right): https://codereview.chromium.org/2253973003/diff/140001/base/trace_event/common/trace_event_common.h#newcode1085 base/trace_event/common/trace_event_common.h:1085: // TODO(crbug.com/639003): Free this bit after ID mangling is ...
4 years, 3 months ago (2016-08-31 19:17:10 UTC) #18
chiniforooshan
https://codereview.chromium.org/2253973003/diff/140001/base/trace_event/common/trace_event_common.h File base/trace_event/common/trace_event_common.h (right): https://codereview.chromium.org/2253973003/diff/140001/base/trace_event/common/trace_event_common.h#newcode1097 base/trace_event/common/trace_event_common.h:1097: #define TRACE_EVENT_FLAG_HAS_GLOBAL_ID (static_cast<unsigned int>(1 << 1 | \ On ...
4 years, 3 months ago (2016-08-31 21:28:46 UTC) #19
chiniforooshan
> As a final thing, would be nice if "somewhere" we had a recap of ...
4 years, 3 months ago (2016-08-31 21:37:34 UTC) #20
caseq
On 2016/08/31 19:11:22, Primiano Tucci wrote: > https://codereview.chromium.org/2253973003/diff/140001/base/trace_event/trace_event_impl.cc#newcode367 > base/trace_event/trace_event_impl.cc:367: id_field_name = "local_id"; > instead ...
4 years, 3 months ago (2016-09-01 05:51:49 UTC) #21
Primiano Tucci (use gerrit)
On 2016/09/01 05:51:49, caseq wrote: > How about cases where we refer to an id ...
4 years, 3 months ago (2016-09-01 13:57:49 UTC) #22
chiniforooshan
+Ben +Nat for trace_event_impl.cc as per Primiano's suggestion.
4 years, 3 months ago (2016-09-01 14:35:48 UTC) #24
chiniforooshan
On 2016/09/01 13:57:49, Primiano Tucci wrote: > On 2016/09/01 05:51:49, caseq wrote: > > > ...
4 years, 3 months ago (2016-09-01 14:52:50 UTC) #25
chiniforooshan
Pinging Nat or Ben :) https://codereview.chromium.org/2253973003/diff/140001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/2253973003/diff/140001/base/trace_event/trace_event_impl.cc#newcode367 base/trace_event/trace_event_impl.cc:367: id_field_name = "local_id"; Nat, ...
4 years, 3 months ago (2016-09-02 19:37:37 UTC) #26
benjhayden
On 2016/09/02 at 19:37:37, chiniforooshan wrote: > Pinging Nat or Ben :) > > https://codereview.chromium.org/2253973003/diff/140001/base/trace_event/trace_event_impl.cc ...
4 years, 3 months ago (2016-09-06 22:53:29 UTC) #27
chiniforooshan
https://codereview.chromium.org/2253973003/diff/140001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/2253973003/diff/140001/base/trace_event/trace_event_impl.cc#newcode367 base/trace_event/trace_event_impl.cc:367: id_field_name = "local_id"; On 2016/09/02 19:37:37, chiniforooshan wrote: > ...
4 years, 3 months ago (2016-09-09 14:40:37 UTC) #29
nduca
I like the idea of breaking the ids so that we don't get subtle "looks ...
4 years, 3 months ago (2016-09-12 16:16:36 UTC) #31
chiniforooshan
On 2016/09/12 16:16:36, nduca wrote: > I like the idea of breaking the ids so ...
4 years, 3 months ago (2016-09-16 15:28:31 UTC) #34
Lek
4 years, 3 months ago (2016-09-18 12:20:08 UTC) #38
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/2253973003/180001
4 years, 3 months ago (2016-09-20 14:40:22 UTC) #41
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-09-20 15:54:02 UTC) #43
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 15:56:00 UTC) #45
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/38e3c2977c913973fc7237089560ce7fc0822bc4
Cr-Commit-Position: refs/heads/master@{#419777}

Powered by Google App Engine
This is Rietveld 408576698