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

Issue 2137013006: [Tracing] V8 Tracing Controller (Closed)

Created:
4 years, 5 months ago by fmeawad
Modified:
4 years, 4 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Tracing] V8 Tracing Controller V8 has had a trace event macro interface for while, but without a tracing controller a standalone V8 would be unable to collect traces. This CL introduces a complete Tracing Controller system for V8. It is fully function except that it does not yet store trace event args. This CL has a few components, The tracing controller itself, contributed by the author of this CL The Trace config (including the parser), contributed by lpy@ The Trace Object, Trace Writer, and Trace Buffer are all contributed by rksang@ BUG=v8:4561 LOG=N Committed: https://crrev.com/3d598452679ce208ad9b2f48e0fb3fae352ce375 Cr-Commit-Position: refs/heads/master@{#38073}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add test cases and address comments #

Patch Set 3 : Fix GN Build #

Total comments: 1

Patch Set 4 : Start/StopTracing + TestTracingController #

Total comments: 2

Patch Set 5 : Make the TraceObject use const char* and add placeholders for the Args #

Patch Set 6 : Make TraceBufferRingBuffer thread-safe #

Patch Set 7 : Fix the tests #

Patch Set 8 : Add getter for more attributes of TraceObject #

Total comments: 12

Patch Set 9 : Address comments + remove TraceConfigJSONParser #

Total comments: 2

Patch Set 10 : Remove trace-config.h from v8.gyp #

Total comments: 2

Patch Set 11 : Add Setters for TraceConfig categories #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1037 lines, -7 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M include/libplatform/libplatform.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
A include/libplatform/v8-tracing.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +232 lines, -0 lines 0 comments Download
M src/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/d8.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M src/d8.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +28 lines, -0 lines 0 comments Download
M src/libplatform/default-platform.h View 4 chunks +7 lines, -1 line 0 comments Download
M src/libplatform/default-platform.cc View 1 2 3 4 chunks +32 lines, -5 lines 0 comments Download
A src/libplatform/tracing/trace-buffer.h View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
A src/libplatform/tracing/trace-buffer.cc View 1 2 3 4 5 1 chunk +109 lines, -0 lines 0 comments Download
A src/libplatform/tracing/trace-config.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +36 lines, -0 lines 0 comments Download
A src/libplatform/tracing/trace-object.cc View 1 2 3 4 5 6 7 1 chunk +64 lines, -0 lines 0 comments Download
A src/libplatform/tracing/trace-writer.h View 1 chunk +30 lines, -0 lines 0 comments Download
A src/libplatform/tracing/trace-writer.cc View 1 2 3 4 5 6 7 1 chunk +57 lines, -0 lines 0 comments Download
A src/libplatform/tracing/tracing-controller.cc View 1 2 3 4 1 chunk +177 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A test/cctest/libplatform/test-tracing.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +186 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (17 generated)
fmeawad
Matt/Ray/Peiyong: can you do a first pass review?
4 years, 5 months ago (2016-07-12 00:36:02 UTC) #2
fmeawad
4 years, 5 months ago (2016-07-12 00:37:15 UTC) #4
rskang
https://codereview.chromium.org/2137013006/diff/1/src/libplatform/tracing/trace-buffer.h File src/libplatform/tracing/trace-buffer.h (right): https://codereview.chromium.org/2137013006/diff/1/src/libplatform/tracing/trace-buffer.h#newcode35 src/libplatform/tracing/trace-buffer.h:35: }; Can TraceBufferChunk go into v8-tracing.h as well? So ...
4 years, 5 months ago (2016-07-12 00:58:52 UTC) #6
fmeawad
https://codereview.chromium.org/2137013006/diff/1/src/libplatform/tracing/trace-buffer.h File src/libplatform/tracing/trace-buffer.h (right): https://codereview.chromium.org/2137013006/diff/1/src/libplatform/tracing/trace-buffer.h#newcode35 src/libplatform/tracing/trace-buffer.h:35: }; On 2016/07/12 00:58:52, rskang wrote: > Can TraceBufferChunk ...
4 years, 5 months ago (2016-07-12 21:03:19 UTC) #8
rskang
https://codereview.chromium.org/2137013006/diff/40001/include/libplatform/v8-tracing.h File include/libplatform/v8-tracing.h (right): https://codereview.chromium.org/2137013006/diff/40001/include/libplatform/v8-tracing.h#newcode180 include/libplatform/v8-tracing.h:180: void Stop(); Can these (Initialize ... Stop) be made ...
4 years, 5 months ago (2016-07-13 00:54:32 UTC) #9
mattloring
https://codereview.chromium.org/2137013006/diff/60001/src/libplatform/tracing/tracing-controller.cc File src/libplatform/tracing/tracing-controller.cc (right): https://codereview.chromium.org/2137013006/diff/60001/src/libplatform/tracing/tracing-controller.cc#newcode102 src/libplatform/tracing/tracing-controller.cc:102: UpdateCategoryGroupEnabledFlags(); Move this before Flush to disable more traces ...
4 years, 5 months ago (2016-07-15 00:19:01 UTC) #10
fmeawad
https://codereview.chromium.org/2137013006/diff/60001/src/libplatform/tracing/tracing-controller.cc File src/libplatform/tracing/tracing-controller.cc (right): https://codereview.chromium.org/2137013006/diff/60001/src/libplatform/tracing/tracing-controller.cc#newcode102 src/libplatform/tracing/tracing-controller.cc:102: UpdateCategoryGroupEnabledFlags(); On 2016/07/15 00:19:01, mattloring wrote: > Move this ...
4 years, 5 months ago (2016-07-15 21:21:59 UTC) #11
fmeawad
4 years, 5 months ago (2016-07-15 21:22:03 UTC) #12
fmeawad
4 years, 5 months ago (2016-07-15 21:22:04 UTC) #13
fmeawad
4 years, 5 months ago (2016-07-15 21:22:06 UTC) #14
fmeawad
4 years, 5 months ago (2016-07-15 21:22:07 UTC) #15
fmeawad
4 years, 5 months ago (2016-07-15 21:22:07 UTC) #16
fmeawad
4 years, 5 months ago (2016-07-15 21:22:08 UTC) #17
fmeawad
Adding reviewers. PTAL
4 years, 5 months ago (2016-07-18 15:27:17 UTC) #19
jochen (gone - plz use gerrit)
I see that you need v8 to load the JSON config. Ideally, however, libplatform would ...
4 years, 5 months ago (2016-07-20 11:03:25 UTC) #20
Yang
https://codereview.chromium.org/2137013006/diff/140001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/2137013006/diff/140001/src/d8.cc#newcode2490 src/d8.cc:2490: if (options.trace_enabled) { Can we factor out all of ...
4 years, 5 months ago (2016-07-21 11:26:55 UTC) #21
mattloring
On 2016/07/20 11:03:25, jochen wrote: > I see that you need v8 to load the ...
4 years, 5 months ago (2016-07-21 17:08:00 UTC) #22
jochen (gone - plz use gerrit)
On 2016/07/21 at 17:08:00, mattloring wrote: > On 2016/07/20 11:03:25, jochen wrote: > > I ...
4 years, 5 months ago (2016-07-22 12:23:44 UTC) #23
fmeawad
I have addressed most of the comments, concerning the JSON Config Parser, I found that ...
4 years, 5 months ago (2016-07-26 09:08:09 UTC) #26
Yang
On 2016/07/26 09:08:09, fmeawad wrote: > I have addressed most of the comments, concerning the ...
4 years, 5 months ago (2016-07-26 10:57:48 UTC) #29
lpy
lgtm https://codereview.chromium.org/2137013006/diff/160001/src/v8.gyp File src/v8.gyp (right): https://codereview.chromium.org/2137013006/diff/160001/src/v8.gyp#newcode2021 src/v8.gyp:2021: 'libplatform/tracing/trace-config.h', No trace-config.h
4 years, 4 months ago (2016-07-26 17:36:18 UTC) #30
fmeawad
https://codereview.chromium.org/2137013006/diff/160001/src/v8.gyp File src/v8.gyp (right): https://codereview.chromium.org/2137013006/diff/160001/src/v8.gyp#newcode2021 src/v8.gyp:2021: 'libplatform/tracing/trace-config.h', On 2016/07/26 17:36:18, lpy wrote: > No trace-config.h ...
4 years, 4 months ago (2016-07-26 17:56:47 UTC) #33
rskang
https://codereview.chromium.org/2137013006/diff/180001/include/libplatform/v8-tracing.h File include/libplatform/v8-tracing.h (right): https://codereview.chromium.org/2137013006/diff/180001/include/libplatform/v8-tracing.h#newcode174 include/libplatform/v8-tracing.h:174: StringList included_categories_; Is it possible to expose included_categories_ and ...
4 years, 4 months ago (2016-07-26 18:01:47 UTC) #34
fmeawad
https://codereview.chromium.org/2137013006/diff/180001/include/libplatform/v8-tracing.h File include/libplatform/v8-tracing.h (right): https://codereview.chromium.org/2137013006/diff/180001/include/libplatform/v8-tracing.h#newcode174 include/libplatform/v8-tracing.h:174: StringList included_categories_; On 2016/07/26 18:01:47, rskang wrote: > Is ...
4 years, 4 months ago (2016-07-26 20:11:07 UTC) #37
mattloring
On 2016/07/26 20:11:07, fmeawad wrote: > https://codereview.chromium.org/2137013006/diff/180001/include/libplatform/v8-tracing.h > File include/libplatform/v8-tracing.h (right): > > https://codereview.chromium.org/2137013006/diff/180001/include/libplatform/v8-tracing.h#newcode174 > ...
4 years, 4 months ago (2016-07-26 21:50:59 UTC) #38
rskang
On 2016/07/26 20:11:07, fmeawad wrote: > https://codereview.chromium.org/2137013006/diff/180001/include/libplatform/v8-tracing.h > File include/libplatform/v8-tracing.h (right): > > https://codereview.chromium.org/2137013006/diff/180001/include/libplatform/v8-tracing.h#newcode174 > ...
4 years, 4 months ago (2016-07-26 21:51:38 UTC) #39
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/2137013006/200001
4 years, 4 months ago (2016-07-26 21:52:34 UTC) #42
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-07-26 22:13:44 UTC) #44
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/3d598452679ce208ad9b2f48e0fb3fae352ce375 Cr-Commit-Position: refs/heads/master@{#38073}
4 years, 4 months ago (2016-07-26 22:15:53 UTC) #46
lpy
4 years, 4 months ago (2016-07-26 22:39:18 UTC) #47
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:200001) has been created in
https://codereview.chromium.org/2183943002/ by lpy@chromium.org.

The reason for reverting is: Revert this CL due to V8 Arm Builder failure and V8
Mips Builder failure.

https://build.chromium.org/p/client.v8.ports/builders/V8%20Arm%20-%20builder/...

https://build.chromium.org/p/client.v8.ports/builders/V8%20Mips%20-%20builder....

Powered by Google App Engine
This is Rietveld 408576698