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

Issue 988893003: Implement tracing interface for v8 (Closed)

Created:
5 years, 9 months ago by fmeawad
Modified:
5 years ago
CC:
alph, marja, Paweł Hajdan Jr., v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Implement tracing interface for v8 This is based on the Skia Implementation. More on the project can be found here: https://docs.google.com/a/chromium.org/document/d/1_4LAnInOB8tM_DLjptWiszRwa4qwiSsDzMkO4tU-Qes/edit#heading=h.p97rw6yt8o2j The V8 Tracing platform will replace the isolate->event_logger(). But since the current embedders (namely chromium) currently use the isolate->event_logger, I made the default implementation (event-tracer) call into isolate->event_logger if an event_logger was set. Once the embedders properly implement the interface (for example in chromium it would look like this: https://codereview.chromium.org/707273005/), the default implementation will be doing nothing. Once the embedders side is fixed, we will change how V8 uses the tracing framework beyond the call from Logger:CallEventLogger. (which would also include a d8 implementation) BUG=v8:4560 LOG=N Committed: https://crrev.com/70a7c754bf3445a8b783b75ca2a7aa34cdeb080b Cr-Commit-Position: refs/heads/master@{#32959}

Patch Set 1 #

Patch Set 2 : minor fix #

Patch Set 3 : Remove debugging data #

Patch Set 4 : Intergate with log-inl #

Patch Set 5 : fix variadic arguments. #

Patch Set 6 : Add GN build configuration #

Patch Set 7 : Minor fix #

Patch Set 8 : Another minor #

Patch Set 9 : Make sure old embedders still work #

Total comments: 12

Patch Set 10 : Remove calls to event_logger from EventTracer and other review fixes #

Patch Set 11 : Add a Unittest for trace-event #

Total comments: 8

Patch Set 12 : Add the use of context_id to store the isolate_id, expand the unit test, and rebase #

Patch Set 13 : Minor #

Total comments: 14

Patch Set 14 : Address comments: Implement Atomic macros, Add Disallow Copy.. #

Total comments: 4

Patch Set 15 : Remove v8-tracing in favor of v8-platform, make passing Isolate* explicit, still WIP #

Total comments: 8

Patch Set 16 : Address comments, still WIP #

Patch Set 17 : Remove trace-event-common.h and use DEPs instead, remove src/v8.h from trace-event.h, file a bug fo… #

Total comments: 4

Patch Set 18 : Add more comments #

Patch Set 19 : Define NULL #

Patch Set 20 : Remove pedantic on gcc to allow for zero variadic macro arguments #

Patch Set 21 : Rebase #

Total comments: 2

Patch Set 22 : Add trace-event.cc to BUILD.gn #

Total comments: 2

Patch Set 23 : Fix the depedency with chromium issue (patch by eisigner@) #

Patch Set 24 : Add default implementation for tracing methods in v8-platform to make roll easier, added include-di… #

Patch Set 25 : Update BUILD.gn to include trace_event_common.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+976 lines, -1 line) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +4 lines, -0 lines 0 comments Download
M DEPS 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 +0 lines, -1 line 0 comments Download
M build/standalone.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +13 lines, -0 lines 0 comments Download
M include/v8-platform.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +47 lines, -0 lines 0 comments Download
M src/DEPS 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, -0 lines 0 comments Download
M src/d8.cc 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 +22 lines, -0 lines 0 comments Download
M src/libplatform/default-platform.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +11 lines, -0 lines 0 comments Download
M src/libplatform/default-platform.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +25 lines, -0 lines 0 comments Download
M src/log-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +14 lines, -0 lines 0 comments Download
A src/tracing/trace-event.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 +535 lines, -0 lines 0 comments Download
A src/tracing/trace-event.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +19 lines, -0 lines 0 comments Download
M test/cctest/cctest.gyp 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, -0 lines 0 comments Download
M test/cctest/heap/test-incremental-marking.cc 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 +22 lines, -0 lines 0 comments Download
A test/cctest/test-trace-event.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +258 lines, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 88 (28 generated)
fmeawad
PTAL.
5 years, 9 months ago (2015-03-12 18:43:14 UTC) #2
Yang
I don't see how we could distinguish events from different isolates. This has been possible ...
5 years, 9 months ago (2015-03-13 07:52:11 UTC) #4
Yang
It generally seems to me that we are moving some logic from Chromium/Blink into V8 ...
5 years, 9 months ago (2015-03-13 08:07:48 UTC) #5
fmeawad
Hi Yang, Thank you for your quick review. I have fixed the isolate issue. The ...
5 years, 9 months ago (2015-03-17 01:18:04 UTC) #6
Yang
If I'm not mistaken, the next step would be to replace logging in V8 by ...
5 years, 9 months ago (2015-03-17 10:43:39 UTC) #7
jochen (gone - plz use gerrit)
with the current integration in blink where we run one isolate per thread, aggregating samples ...
5 years, 9 months ago (2015-03-17 10:47:32 UTC) #8
Yang
On 2015/03/17 10:47:32, jochen (slow) wrote: > with the current integration in blink where we ...
5 years, 9 months ago (2015-03-17 10:53:09 UTC) #9
nduca
Hmm! I think this is actually an interesting use case to get right, if possible... ...
5 years, 9 months ago (2015-03-17 11:07:00 UTC) #10
yurys
On 2015/03/17 11:07:00, nduca wrote: > Hmm! I think this is actually an interesting use ...
5 years, 9 months ago (2015-03-18 08:56:16 UTC) #11
fmeawad
On 2015/03/18 08:56:16, yurys wrote: > On 2015/03/17 11:07:00, nduca wrote: > > Hmm! I ...
5 years, 9 months ago (2015-03-18 18:17:40 UTC) #13
jochen (gone - plz use gerrit)
> Nat and I had a couple of discussions yesterday, > I will write up ...
5 years, 9 months ago (2015-03-18 18:26:58 UTC) #14
fmeawad
On 2015/03/18 18:26:58, jochen (OOO) wrote: > > Nat and I had a couple of ...
5 years, 8 months ago (2015-04-02 20:26:44 UTC) #15
dsinclair
I'm guessing you're going to want to use the base/trace_event/trace_event.h instead of the Skia one ...
5 years, 5 months ago (2015-06-24 19:05:09 UTC) #17
yurys
+caseq
5 years, 5 months ago (2015-07-06 06:49:32 UTC) #19
caseq
+1 to getting this done (and willing to help if needed, as I had a ...
5 years, 5 months ago (2015-07-08 09:53:04 UTC) #20
fmeawad
On 2015/07/08 09:53:04, caseq wrote: > +1 to getting this done (and willing to help ...
5 years, 5 months ago (2015-07-08 16:44:25 UTC) #21
dsinclair
On 2015/07/08 16:44:25, fmeawad wrote: > On 2015/07/08 09:53:04, caseq wrote: > > +1 to ...
5 years, 4 months ago (2015-08-05 19:01:26 UTC) #22
fmeawad
On 2015/08/05 19:01:26, dsinclair wrote: > On 2015/07/08 16:44:25, fmeawad wrote: > > On 2015/07/08 ...
5 years, 4 months ago (2015-08-05 19:40:32 UTC) #23
fmeawad
dsinclair, PTAL.
5 years, 3 months ago (2015-08-25 03:20:38 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988893003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/988893003/240001
5 years, 3 months ago (2015-08-25 03:24:21 UTC) #26
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 3 months ago (2015-08-25 03:24:23 UTC) #28
dsinclair
lgtm w/ nits https://codereview.chromium.org/988893003/diff/240001/include/v8-tracing.h File include/v8-tracing.h (right): https://codereview.chromium.org/988893003/diff/240001/include/v8-tracing.h#newcode32 include/v8-tracing.h:32: // These values must be in ...
5 years, 3 months ago (2015-08-25 13:56:22 UTC) #29
fmeawad
Addressed Dan's comments. Yang, PTAL! https://codereview.chromium.org/988893003/diff/240001/include/v8-tracing.h File include/v8-tracing.h (right): https://codereview.chromium.org/988893003/diff/240001/include/v8-tracing.h#newcode32 include/v8-tracing.h:32: // These values must ...
5 years, 3 months ago (2015-08-25 21:32:01 UTC) #30
caseq
https://codereview.chromium.org/988893003/diff/260001/include/v8-tracing.h File include/v8-tracing.h (right): https://codereview.chromium.org/988893003/diff/260001/include/v8-tracing.h#newcode49 include/v8-tracing.h:49: virtual EventTracer::Handle AddTraceEvent( I'm very positive about the CL ...
5 years, 3 months ago (2015-08-25 22:02:46 UTC) #31
Yang
On 2015/08/25 22:02:46, caseq wrote: > https://codereview.chromium.org/988893003/diff/260001/include/v8-tracing.h > File include/v8-tracing.h (right): > > https://codereview.chromium.org/988893003/diff/260001/include/v8-tracing.h#newcode49 > ...
5 years, 3 months ago (2015-08-27 10:48:56 UTC) #32
dsinclair
On 2015/08/27 10:48:56, Yang wrote: > On 2015/08/25 22:02:46, caseq wrote: > > https://codereview.chromium.org/988893003/diff/260001/include/v8-tracing.h > ...
5 years, 3 months ago (2015-08-27 13:05:52 UTC) #33
fmeawad
On 2015/08/27 13:05:52, dsinclair wrote: > On 2015/08/27 10:48:56, Yang wrote: > > On 2015/08/25 ...
5 years, 3 months ago (2015-08-31 20:27:43 UTC) #34
dsinclair
On 2015/08/31 20:27:43, fmeawad wrote: > > Yang, ping. From the display name, it looks ...
5 years, 3 months ago (2015-09-04 13:26:14 UTC) #35
jochen (gone - plz use gerrit)
i'm back & looking. it would be nice if we could move those files to ...
5 years, 3 months ago (2015-09-07 14:24:13 UTC) #36
dsinclair
On 2015/09/07 14:24:13, jochen wrote: > i'm back & looking. > > it would be ...
5 years, 3 months ago (2015-09-08 13:55:34 UTC) #37
jochen (gone - plz use gerrit)
not sure why this would be a larger fix? it would require moving the files ...
5 years, 3 months ago (2015-09-08 14:20:34 UTC) #38
caseq
https://codereview.chromium.org/988893003/diff/260001/include/v8-tracing.h File include/v8-tracing.h (right): https://codereview.chromium.org/988893003/diff/260001/include/v8-tracing.h#newcode49 include/v8-tracing.h:49: virtual EventTracer::Handle AddTraceEvent( On 2015/09/08 14:20:34, jochen wrote: > ...
5 years, 3 months ago (2015-09-08 17:57:49 UTC) #39
jochen (gone - plz use gerrit)
On 2015/09/08 at 17:57:49, caseq wrote: > https://codereview.chromium.org/988893003/diff/260001/include/v8-tracing.h > File include/v8-tracing.h (right): > > https://codereview.chromium.org/988893003/diff/260001/include/v8-tracing.h#newcode49 ...
5 years, 3 months ago (2015-09-08 20:16:08 UTC) #40
noordhuis
https://codereview.chromium.org/988893003/diff/280001/include/v8-platform.h File include/v8-platform.h (right): https://codereview.chromium.org/988893003/diff/280001/include/v8-platform.h#newcode126 include/v8-platform.h:126: const char* name, uint64_t handle) = 0; These really ...
5 years, 2 months ago (2015-10-07 18:31:54 UTC) #43
fmeawad
I have addressed all comments, Major changes include: 1- removing trace-event-common.h and put it in ...
5 years, 1 month ago (2015-11-19 02:00:47 UTC) #47
Yang
LGTM with comments. I think I'm missing a test case where we can distinguish trace ...
5 years, 1 month ago (2015-11-19 09:30:32 UTC) #48
fmeawad
> I think I'm missing a test case where we can distinguish trace events by ...
5 years, 1 month ago (2015-11-20 22:22:09 UTC) #49
fmeawad
https://codereview.chromium.org/988893003/diff/320001/include/v8-platform.h File include/v8-platform.h (right): https://codereview.chromium.org/988893003/diff/320001/include/v8-platform.h#newcode125 include/v8-platform.h:125: * Add a trace event to the platform tracing ...
5 years, 1 month ago (2015-11-20 22:22:20 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988893003/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/988893003/340001
5 years, 1 month ago (2015-11-20 22:26:06 UTC) #52
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/8924)
5 years, 1 month ago (2015-11-20 22:28:36 UTC) #54
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988893003/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/988893003/360001
5 years, 1 month ago (2015-11-20 23:02:40 UTC) #56
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_chromium_gn_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_chromium_gn_rel/builds/10332)
5 years, 1 month ago (2015-11-20 23:12:19 UTC) #58
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988893003/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/988893003/380001
5 years ago (2015-11-24 20:39:14 UTC) #60
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_chromium_gn_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_chromium_gn_rel/builds/10458)
5 years ago (2015-11-24 20:51:35 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988893003/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/988893003/400001
5 years ago (2015-11-25 19:28:51 UTC) #65
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_chromium_gn_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_chromium_gn_rel/builds/10544)
5 years ago (2015-11-25 19:46:20 UTC) #67
jochen (gone - plz use gerrit)
i guess v8 needs to depend on a target defined in the new DEPS entry ...
5 years ago (2015-11-26 13:28:35 UTC) #68
fmeawad
I have also landed https://codereview.chromium.org/1469303004/ yesterday to get the common DEPS to roll into chromium, ...
5 years ago (2015-11-26 15:48:22 UTC) #69
jochen (gone - plz use gerrit)
https://codereview.chromium.org/988893003/diff/420001/DEPS File DEPS (right): https://codereview.chromium.org/988893003/diff/420001/DEPS#newcode16 DEPS:16: "v8/src/tracing/common": I think this line should be v8/base/trace_event/common
5 years ago (2015-12-01 17:04:41 UTC) #70
jochen (gone - plz use gerrit)
On 2015/12/01 at 17:04:41, jochen wrote: > https://codereview.chromium.org/988893003/diff/420001/DEPS > File DEPS (right): > > https://codereview.chromium.org/988893003/diff/420001/DEPS#newcode16 ...
5 years ago (2015-12-16 10:55:11 UTC) #71
jochen (gone - plz use gerrit)
https://codereview.chromium.org/988893003/diff/420001/include/v8-platform.h File include/v8-platform.h (right): https://codereview.chromium.org/988893003/diff/420001/include/v8-platform.h#newcode120 include/v8-platform.h:120: virtual const uint8_t* GetCategoryGroupEnabled(const char* name) = 0; we ...
5 years ago (2015-12-16 15:41:22 UTC) #72
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988893003/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/988893003/460001
5 years ago (2015-12-17 00:40:49 UTC) #74
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_chromium_gn_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_chromium_gn_rel/builds/11507)
5 years ago (2015-12-17 00:48:08 UTC) #76
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988893003/480001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/988893003/480001
5 years ago (2015-12-17 18:24:45 UTC) #78
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-17 18:46:09 UTC) #80
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988893003/480001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/988893003/480001
5 years ago (2015-12-17 18:46:42 UTC) #83
commit-bot: I haz the power
Committed patchset #25 (id:480001)
5 years ago (2015-12-17 18:48:12 UTC) #84
commit-bot: I haz the power
Patchset 25 (id:??) landed as https://crrev.com/70a7c754bf3445a8b783b75ca2a7aa34cdeb080b Cr-Commit-Position: refs/heads/master@{#32959}
5 years ago (2015-12-17 18:48:42 UTC) #86
Dan Ehrenberg
On 2015/12/17 at 18:48:42, commit-bot wrote: > Patchset 25 (id:??) landed as https://crrev.com/70a7c754bf3445a8b783b75ca2a7aa34cdeb080b > Cr-Commit-Position: ...
5 years ago (2015-12-17 21:30:35 UTC) #87
Dan Ehrenberg
5 years ago (2015-12-17 21:33:26 UTC) #88
Message was sent while issue was closed.
On 2015/12/17 at 21:30:35, Dan Ehrenberg wrote:
> On 2015/12/17 at 18:48:42, commit-bot wrote:
> > Patchset 25 (id:??) landed as
https://crrev.com/70a7c754bf3445a8b783b75ca2a7aa34cdeb080b
> > Cr-Commit-Position: refs/heads/master@{#32959}
> 
> This breaks my interactive builds of V8.

Oh sorry, this was from a missing 'gclient sync'.

Powered by Google App Engine
This is Rietveld 408576698