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

Issue 536503002: Add NESTABLE_ASYNC APIs to Tracing (Closed)

Created:
6 years, 3 months ago by xunjieli
Modified:
6 years, 3 months ago
Reviewers:
dsinclair, nduca
CC:
chromium-reviews, wfh+watch_chromium.org, dsinclair+watch_chromium.org, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

This CL adds NESTABLE_ASYNC APIs to tracing. This is a part of the effort to get NetLog data into tracing. The reason to add these new APIs for logging NetLog events is that NetLog events are logged asynchronously and can have multiple nested levels of inner events. The current ASYNC_STEP APIs only allow one level of nested events. In general, it would be useful if we could can have an async event broken into sub steps, each sub step has an explicitly defined beginning and end within that overall event, with additional arguments. Design Doc: https://docs.google.com/document/d/1Z2uqj59UEts5IiXX78mkdU4kd6e7kE3JUKPoDK97bVs/edit?usp=sharing BUG=399701 Committed: https://crrev.com/039bf813a96ec7284af2fb85926769714cb5eb05 Cr-Commit-Position: refs/heads/master@{#293940}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Addressed comments #

Total comments: 2

Patch Set 3 : Changed to ASYNC_NESTABLE #

Patch Set 4 : add BASE_EXPORT on EnabledStateObserver #

Total comments: 10

Patch Set 5 : Changed back to NESTABLE_ASYNC #

Patch Set 6 : Modified documentation #

Patch Set 7 : Addressed Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -1 line) Patch
M base/debug/trace_event.h View 1 2 3 4 5 6 3 chunks +45 lines, -1 line 0 comments Download

Messages

Total messages: 30 (5 generated)
xunjieli
Hi dsinclair and nduca, I have separated out trace specific changes. PTAL. Thanks! Helen https://codereview.chromium.org/536503002/diff/1/base/debug/trace_event.h ...
6 years, 3 months ago (2014-09-02 20:21:46 UTC) #2
xunjieli
6 years, 3 months ago (2014-09-02 20:22:26 UTC) #3
dsinclair
On 2014/09/02 20:22:26, xunjieli1 wrote: Is there a reason to create NET_LOG_* events specifically? They ...
6 years, 3 months ago (2014-09-02 20:31:17 UTC) #4
mmenke
On 2014/09/02 20:31:17, dsinclair wrote: > On 2014/09/02 20:22:26, xunjieli1 wrote: > > Is there ...
6 years, 3 months ago (2014-09-02 20:46:02 UTC) #5
dsinclair
> > Is there a reason to create NET_LOG_* events specifically? They don't seem to ...
6 years, 3 months ago (2014-09-02 21:06:07 UTC) #6
xunjieli
On 2014/09/02 21:06:07, dsinclair wrote: > > > Is there a reason to create NET_LOG_* ...
6 years, 3 months ago (2014-09-02 21:07:34 UTC) #7
nduca
https://codereview.chromium.org/536503002/diff/1/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/536503002/diff/1/base/debug/trace_event.h#newcode639 base/debug/trace_event.h:639: // associated arguments. If the category is not enabled, ...
6 years, 3 months ago (2014-09-03 05:37:24 UTC) #9
nduca
6 years, 3 months ago (2014-09-03 05:37:25 UTC) #10
nduca
Also please make your CL description more readable. The first line in the commit should ...
6 years, 3 months ago (2014-09-03 05:38:34 UTC) #11
xunjieli
Thanks Nat for the review! I have uploaded a new patch. PTAL https://codereview.chromium.org/536503002/diff/1/base/debug/trace_event.h File base/debug/trace_event.h ...
6 years, 3 months ago (2014-09-03 14:51:10 UTC) #12
dsinclair
https://codereview.chromium.org/536503002/diff/40001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/536503002/diff/40001/base/debug/trace_event.h#newcode1023 base/debug/trace_event.h:1023: #define TRACE_EVENT_PHASE_NESTABLE_ASYNC_INSTANT ('n') bikeshed: should these be ASYNC_NESTABLE (and ...
6 years, 3 months ago (2014-09-03 15:02:47 UTC) #13
xunjieli
https://codereview.chromium.org/536503002/diff/40001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/536503002/diff/40001/base/debug/trace_event.h#newcode1023 base/debug/trace_event.h:1023: #define TRACE_EVENT_PHASE_NESTABLE_ASYNC_INSTANT ('n') On 2014/09/03 15:02:47, dsinclair wrote: > ...
6 years, 3 months ago (2014-09-03 15:09:15 UTC) #14
nduca
nestable_async please.
6 years, 3 months ago (2014-09-03 18:15:04 UTC) #15
xunjieli
On 2014/09/03 18:15:04, nduca wrote: > nestable_async please. I don't have a strong preference. Since ...
6 years, 3 months ago (2014-09-03 18:45:33 UTC) #16
nduca
I talked to Dan offline, I think I pursuaded him to go with the nestable_async. ...
6 years, 3 months ago (2014-09-03 19:35:35 UTC) #17
xunjieli
Sure. Did you send the comments? I don't see them. On 2014/09/03 19:35:35, nduca wrote: ...
6 years, 3 months ago (2014-09-03 19:48:12 UTC) #18
dsinclair
On 2014/09/03 19:48:12, xunjieli1 wrote: > Sure. Did you send the comments? I don't see ...
6 years, 3 months ago (2014-09-04 14:17:42 UTC) #19
xunjieli
On 2014/09/04 14:17:42, dsinclair wrote: > On 2014/09/03 19:48:12, xunjieli1 wrote: > > Sure. Did ...
6 years, 3 months ago (2014-09-04 14:24:27 UTC) #20
xunjieli
Pinging. PTAL. Thanks!
6 years, 3 months ago (2014-09-05 17:08:52 UTC) #21
dsinclair
lgtm
6 years, 3 months ago (2014-09-08 16:43:28 UTC) #22
nduca
more comments, but lgtm assuming you can address them https://codereview.chromium.org/536503002/diff/80001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/536503002/diff/80001/base/debug/trace_event.h#newcode514 base/debug/trace_event.h:514: ...
6 years, 3 months ago (2014-09-08 22:21:14 UTC) #24
xunjieli
Thanks for the review! I have uploaded a new patch to address the comments, and ...
6 years, 3 months ago (2014-09-09 13:31:19 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xunjieli@chromium.org/536503002/180001
6 years, 3 months ago (2014-09-09 13:33:03 UTC) #28
commit-bot: I haz the power
Committed patchset #7 (id:180001) as efcfda133af95f4f579ba3f49b6243bdd57e4d0a
6 years, 3 months ago (2014-09-09 15:26:20 UTC) #29
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:53:25 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/039bf813a96ec7284af2fb85926769714cb5eb05
Cr-Commit-Position: refs/heads/master@{#293940}

Powered by Google App Engine
This is Rietveld 408576698