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

Issue 1239593002: Implement a new flow event API that allows binding flow events and regular events. (Closed)

Created:
5 years, 5 months ago by yuhaoz
Modified:
5 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, 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

Implement a new flow event API that allows binding flow events and regular events. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/21c55cb65ef294af3e5479c34473786281168aef Cr-Commit-Position: refs/heads/master@{#341023} Committed: https://crrev.com/565896aeb84ba2188a725b4ffc13bbbdb8d1ceea Cr-Commit-Position: refs/heads/master@{#341154}

Patch Set 1 #

Patch Set 2 : Remove a redundant macro. #

Total comments: 5

Patch Set 3 : Implement TRACE_EVENT_WITH_FLOW #

Patch Set 4 : Remove unnecessary comments. #

Total comments: 3

Patch Set 5 : Implement binding flow events to slices for PostTasks. #

Total comments: 14

Patch Set 6 : Add support for flow steps. #

Total comments: 1

Patch Set 7 : The patch that only implements new APIs without effecting the rest of Chrome. #

Patch Set 8 : The patch that only implements new APIs without effecting the rest of Chrome. #

Total comments: 1

Patch Set 9 : Always mangle id when the flag is set. #

Total comments: 1

Patch Set 10 : Fix compile bug by creating an overload function to add events. #

Patch Set 11 : Modify unittests to compile with new APIs. #

Patch Set 12 : Mainly incorporates context_id into the new flow event APIs. #

Total comments: 18

Patch Set 13 : NULL to nullptr and better commenting. #

Patch Set 14 : Use overloaded function calls. #

Patch Set 15 : Manual merge with ToT. #

Patch Set 16 : Add a flag for FLOW_OPTIONAL. #

Total comments: 15

Patch Set 17 : Improve format. #

Total comments: 3

Patch Set 18 : Fix nits. #

Patch Set 19 : Manual merge #

Patch Set 20 : Fix style. #

Patch Set 21 : Style revert. #

Patch Set 22 : bind_id_ should be unsigned long long instead of unsigned int. #

Patch Set 23 : Merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M base/trace_event/trace_event_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 107 (35 generated)
yuhaoz
It's a new API that allows creating an event and its bundled flow event at ...
5 years, 5 months ago (2015-07-13 22:32:11 UTC) #2
yuhaoz
Remove a redundant macro.
5 years, 5 months ago (2015-07-13 22:37:27 UTC) #3
dsinclair
https://codereview.chromium.org/1239593002/diff/20001/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/1239593002/diff/20001/base/trace_event/trace_event.h#newcode231 base/trace_event/trace_event.h:231: #define TRACE_EVENT1_WITH_FLOW(category_group, name, arg1_name, arg1_val) \ These should be ...
5 years, 5 months ago (2015-07-14 13:52:10 UTC) #4
yuhaoz
On 2015/07/14 at 13:52:10, dsinclair wrote: > https://codereview.chromium.org/1239593002/diff/20001/base/trace_event/trace_event.h > File base/trace_event/trace_event.h (right): > > https://codereview.chromium.org/1239593002/diff/20001/base/trace_event/trace_event.h#newcode231 ...
5 years, 5 months ago (2015-07-14 16:38:37 UTC) #5
yuhaoz
On 2015/07/14 at 13:52:10, dsinclair wrote: > https://codereview.chromium.org/1239593002/diff/20001/base/trace_event/trace_event.h > File base/trace_event/trace_event.h (right): > > https://codereview.chromium.org/1239593002/diff/20001/base/trace_event/trace_event.h#newcode231 ...
5 years, 5 months ago (2015-07-14 16:46:28 UTC) #6
dsinclair
On 2015/07/14 16:38:37, yuhaoz wrote: > On 2015/07/14 at 13:52:10, dsinclair wrote: > > > ...
5 years, 5 months ago (2015-07-14 17:00:02 UTC) #7
dsinclair
On 2015/07/14 16:46:28, yuhaoz wrote: > On 2015/07/14 at 13:52:10, dsinclair wrote: > > > ...
5 years, 5 months ago (2015-07-14 17:01:37 UTC) #8
yuhaoz
On 2015/07/14 at 17:00:02, dsinclair wrote: > On 2015/07/14 16:38:37, yuhaoz wrote: > > On ...
5 years, 5 months ago (2015-07-14 17:03:10 UTC) #9
dsinclair
On 2015/07/14 17:03:10, yuhaoz wrote: > On 2015/07/14 at 17:00:02, dsinclair wrote: > > On ...
5 years, 5 months ago (2015-07-14 17:05:52 UTC) #10
yuhaoz
> The flow data should not be a second set of categories and names. It ...
5 years, 5 months ago (2015-07-14 17:11:02 UTC) #11
dsinclair
On 2015/07/14 17:11:02, yuhaoz wrote: > > The flow data should not be a second ...
5 years, 5 months ago (2015-07-14 17:12:24 UTC) #12
yuhaoz
On 2015/07/14 at 17:12:24, dsinclair wrote: > On 2015/07/14 17:11:02, yuhaoz wrote: > > > ...
5 years, 5 months ago (2015-07-14 17:15:40 UTC) #13
dsinclair
On 2015/07/14 17:15:40, yuhaoz wrote: > On 2015/07/14 at 17:12:24, dsinclair wrote: > > On ...
5 years, 5 months ago (2015-07-14 17:17:08 UTC) #14
fmeawad
https://codereview.chromium.org/1239593002/diff/20001/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/1239593002/diff/20001/base/trace_event/trace_event.h#newcode1221 base/trace_event/trace_event.h:1221: #define FLOW_OUT (static_cast<unsigned char>(1)) On 2015/07/14 13:52:10, dsinclair wrote: ...
5 years, 5 months ago (2015-07-14 17:32:57 UTC) #16
yuhaoz
This CL creates a separate trace event when we are tracing a flow event. It ...
5 years, 5 months ago (2015-07-15 18:53:02 UTC) #17
yuhaoz
5 years, 5 months ago (2015-07-15 18:54:23 UTC) #19
yuhaoz
5 years, 5 months ago (2015-07-15 18:57:51 UTC) #20
vmpstr
This lgtm, as long as dsinclair and others are good with it. This makes flow ...
5 years, 5 months ago (2015-07-16 21:30:11 UTC) #21
yuhaoz
On 2015/07/16 at 21:30:11, vmpstr wrote: > This lgtm, as long as dsinclair and others ...
5 years, 5 months ago (2015-07-16 22:53:12 UTC) #22
yuhaoz
This patch makes PostTask to use the new Flow Event API.
5 years, 5 months ago (2015-07-16 22:54:03 UTC) #23
dsinclair
Awesome, thanks a lot for iterating on this. Mostly just nit's for comments. The one ...
5 years, 5 months ago (2015-07-17 13:39:41 UTC) #24
yuhaoz
This CL mainly adds support for flow steps, and incorporates Dan's comments. After everything looks ...
5 years, 5 months ago (2015-07-17 22:03:10 UTC) #25
beaudoin
On 2015/07/17 22:03:10, yuhaoz wrote: > This CL mainly adds support for flow steps, and ...
5 years, 5 months ago (2015-07-20 14:39:12 UTC) #26
dsinclair
Just one comment on the CL. Seems good so far. Can you split it into ...
5 years, 5 months ago (2015-07-20 15:01:32 UTC) #27
yuhaoz
First step of splitting into multiple patches. This patch only implements new APIs without effecting ...
5 years, 5 months ago (2015-07-20 16:53:25 UTC) #28
dsinclair
https://codereview.chromium.org/1239593002/diff/140001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/1239593002/diff/140001/base/trace_event/trace_event_impl.cc#newcode2060 base/trace_event/trace_event_impl.cc:2060: id = MangleEventId(id); I think id needs to always ...
5 years, 5 months ago (2015-07-20 18:21:37 UTC) #29
yuhaoz
Always mangle id when the flag is set.Forgot to fix this in the previous patch...
5 years, 5 months ago (2015-07-20 18:23:58 UTC) #30
dsinclair
lgtm
5 years, 5 months ago (2015-07-20 18:24:48 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239593002/160001
5 years, 5 months ago (2015-07-20 18:27:44 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/93419) android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 5 months ago (2015-07-20 18:35:21 UTC) #36
dsinclair
https://codereview.chromium.org/1239593002/diff/160001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/1239593002/diff/160001/base/trace_event/trace_event_impl.cc#newcode856 base/trace_event/trace_event_impl.cc:856: StringAppendF(out, ",\"flow_in\":\"true\""); Can this just be ",\"flow_in\":true"); and false ...
5 years, 5 months ago (2015-07-20 18:37:32 UTC) #37
fmeawad
On 2015/07/20 18:37:32, dsinclair wrote: > https://codereview.chromium.org/1239593002/diff/160001/base/trace_event/trace_event_impl.cc > File base/trace_event/trace_event_impl.cc (right): > > https://codereview.chromium.org/1239593002/diff/160001/base/trace_event/trace_event_impl.cc#newcode856 > ...
5 years, 5 months ago (2015-07-20 20:59:58 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239593002/180001
5 years, 5 months ago (2015-07-20 21:26:47 UTC) #40
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/80258)
5 years, 5 months ago (2015-07-20 21:35:58 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239593002/200001
5 years, 5 months ago (2015-07-20 21:48:14 UTC) #46
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/80266)
5 years, 5 months ago (2015-07-20 22:04:32 UTC) #48
dsinclair
On 2015/07/20 20:59:58, fmeawad wrote: > On 2015/07/20 18:37:32, dsinclair wrote: > > > https://codereview.chromium.org/1239593002/diff/160001/base/trace_event/trace_event_impl.cc ...
5 years, 5 months ago (2015-07-21 14:18:36 UTC) #49
yuhaoz
This patch incorporates the new context_id into the new flow event APIs. I also implemented ...
5 years, 5 months ago (2015-07-21 16:55:11 UTC) #50
vmpstr
From the API perspective, I think this looks fine. Let's document everything in the doc ...
5 years, 5 months ago (2015-07-21 18:03:41 UTC) #51
dsinclair
https://codereview.chromium.org/1239593002/diff/220001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/1239593002/diff/220001/base/trace_event/trace_event_impl.cc#newcode2250 base/trace_event/trace_event_impl.cc:2250: bind_id, Why did you unwrap this call? https://codereview.chromium.org/1239593002/diff/220001/base/trace_event/trace_event_impl.cc#newcode2423 base/trace_event/trace_event_impl.cc:2423: ...
5 years, 5 months ago (2015-07-21 18:11:49 UTC) #52
yuhaoz
Incorporating comments. https://codereview.chromium.org/1239593002/diff/220001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/1239593002/diff/220001/base/trace_event/trace_event_impl.cc#newcode2250 base/trace_event/trace_event_impl.cc:2250: bind_id, On 2015/07/21 at 18:11:49, dsinclair wrote: ...
5 years, 5 months ago (2015-07-21 18:22:34 UTC) #53
dsinclair
https://codereview.chromium.org/1239593002/diff/220001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/1239593002/diff/220001/base/trace_event/trace_event_impl.cc#newcode2250 base/trace_event/trace_event_impl.cc:2250: bind_id, On 2015/07/21 18:22:34, yuhaoz wrote: > On 2015/07/21 ...
5 years, 5 months ago (2015-07-21 18:32:50 UTC) #54
yuhaoz
Use overloaded functions when possible. Switching to using new APIs should go into a separate ...
5 years, 5 months ago (2015-07-21 18:51:56 UTC) #55
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239593002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1239593002/260001
5 years, 5 months ago (2015-07-22 21:48:03 UTC) #57
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/76503) mac_chromium_compile_dbg_ng on ...
5 years, 5 months ago (2015-07-22 21:54:31 UTC) #59
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239593002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1239593002/280001
5 years, 5 months ago (2015-07-22 22:20:28 UTC) #61
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/33688)
5 years, 5 months ago (2015-07-22 23:24:52 UTC) #63
yuhaoz
So with the discussion this morning, does this patch look fine?
5 years, 5 months ago (2015-07-24 19:52:27 UTC) #64
yuhaoz
PTAL. Add a flag for FLOW_OPTIONAL.
5 years, 4 months ago (2015-07-27 17:01:26 UTC) #65
beaudoin
LGTM with nits. https://codereview.chromium.org/1239593002/diff/300001/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/1239593002/diff/300001/base/trace_event/trace_event.h#newcode231 base/trace_event/trace_event.h:231: flow_direction) s/flow_direction/flow_flags ? Since it includes ...
5 years, 4 months ago (2015-07-27 18:34:14 UTC) #66
beaudoin
On 2015/07/27 18:34:14, beaudoin wrote: > LGTM with nits. > > https://codereview.chromium.org/1239593002/diff/300001/base/trace_event/trace_event.h > File base/trace_event/trace_event.h ...
5 years, 4 months ago (2015-07-27 19:02:55 UTC) #67
yuhaoz
On 2015/07/27 at 19:02:55, beaudoin wrote: > Hmmm... I'm rescinding my LGTM based on the ...
5 years, 4 months ago (2015-07-28 17:13:22 UTC) #68
yuhaoz
Fixed nits. This whole CL defines and implements the new TRACE_EVENT_WITH_FLOW API. As per our ...
5 years, 4 months ago (2015-07-28 21:04:07 UTC) #69
beaudoin
LGTM with some more nits. https://codereview.chromium.org/1239593002/diff/300001/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/1239593002/diff/300001/base/trace_event/trace_event.h#newcode1218 base/trace_event/trace_event.h:1218: #define TRACE_EVENT_FLAG_FLOW_OPTIONAL (static_cast<unsigned int>(1 ...
5 years, 4 months ago (2015-07-29 18:55:44 UTC) #70
yuhaoz
Fix nits. https://codereview.chromium.org/1239593002/diff/300001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/1239593002/diff/300001/base/trace_event/trace_event_impl.cc#newcode2426 base/trace_event/trace_event_impl.cc:2426: trace_event_internal::kNoId, On 2015/07/29 at 18:55:43, beaudoin wrote: ...
5 years, 4 months ago (2015-07-29 19:09:39 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239593002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1239593002/340001
5 years, 4 months ago (2015-07-29 19:23:25 UTC) #74
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/73055) android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 4 months ago (2015-07-29 19:27:45 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239593002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1239593002/360001
5 years, 4 months ago (2015-07-29 21:59:42 UTC) #79
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/83214)
5 years, 4 months ago (2015-07-29 22:11:58 UTC) #81
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239593002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1239593002/380001
5 years, 4 months ago (2015-07-29 22:14:46 UTC) #84
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/83219)
5 years, 4 months ago (2015-07-29 22:26:24 UTC) #86
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239593002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1239593002/400001
5 years, 4 months ago (2015-07-29 22:31:14 UTC) #89
commit-bot: I haz the power
Committed patchset #21 (id:400001)
5 years, 4 months ago (2015-07-29 23:51:51 UTC) #90
commit-bot: I haz the power
Patchset 21 (id:??) landed as https://crrev.com/21c55cb65ef294af3e5479c34473786281168aef Cr-Commit-Position: refs/heads/master@{#341023}
5 years, 4 months ago (2015-07-29 23:52:18 UTC) #91
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239593002/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1239593002/420001
5 years, 4 months ago (2015-07-30 00:03:43 UTC) #94
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/93082) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 4 months ago (2015-07-30 00:06:01 UTC) #96
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239593002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1239593002/440001
5 years, 4 months ago (2015-07-30 00:11:58 UTC) #99
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/115377)
5 years, 4 months ago (2015-07-30 00:46:24 UTC) #101
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239593002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1239593002/440001
5 years, 4 months ago (2015-07-30 16:59:16 UTC) #103
commit-bot: I haz the power
Committed patchset #23 (id:440001)
5 years, 4 months ago (2015-07-30 17:46:42 UTC) #104
commit-bot: I haz the power
Patchset 23 (id:??) landed as https://crrev.com/565896aeb84ba2188a725b4ffc13bbbdb8d1ceea Cr-Commit-Position: refs/heads/master@{#341154}
5 years, 4 months ago (2015-07-30 17:47:45 UTC) #105
Lei Zhang
5 years, 4 months ago (2015-08-07 17:37:59 UTC) #107
Message was sent while issue was closed.
Drive by: Patch set 23 is rather confusing. It's a 1 line change. It looks like
the CL was used twice. Once to land patch set 22 and again for patch set 23.
Patch set 23 committed as
https://chromium.googlesource.com/chromium/src/+/565896aeb84ba2188a725b4ffc13...
but the commit message is out of context. Please don't do this. Use a new CL for
new changes.

Powered by Google App Engine
This is Rietveld 408576698