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

Issue 2190973003: [Tracing] V8 Tracing Controller - Add args and copy support (Closed)

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

Description

Add args and copy support to V8 tracing controller. BUG=v8:4561 Committed: https://crrev.com/9a6a56d21fd606415685d2078d120f6acb9a2027 Cr-Commit-Position: refs/heads/master@{#38255}

Patch Set 1 #

Patch Set 2 : Fix deps #

Patch Set 3 : More fixes #

Total comments: 6

Patch Set 4 : Remove JSON-escaping #

Total comments: 5

Patch Set 5 : Change to include base/trace_event/common/trace_event_common.h #

Patch Set 6 : Fix deps #

Total comments: 4

Patch Set 7 : Fix copy tests #

Total comments: 14

Patch Set 8 : Address comments + Fix trace id output #

Patch Set 9 : Ensure NULL strings are output correctly in TraceWriter #

Total comments: 6

Patch Set 10 : Use V8_INLINE static for non-class functions #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -30 lines) Patch
M BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M include/libplatform/v8-tracing.h View 1 2 3 4 5 6 7 3 chunks +20 lines, -1 line 0 comments Download
M src/libplatform/tracing/trace-object.cc View 1 2 3 4 5 6 7 8 9 3 chunks +68 lines, -1 line 1 comment Download
M src/libplatform/tracing/trace-writer.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M src/libplatform/tracing/trace-writer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +99 lines, -23 lines 0 comments Download
M test/cctest/libplatform/test-tracing.cc View 1 2 3 4 5 6 7 3 chunks +133 lines, -5 lines 0 comments Download

Messages

Total messages: 79 (52 generated)
lpy
https://codereview.chromium.org/2190973003/diff/40001/include/libplatform/v8-tracing.h File include/libplatform/v8-tracing.h (right): https://codereview.chromium.org/2190973003/diff/40001/include/libplatform/v8-tracing.h#newcode12 include/libplatform/v8-tracing.h:12: #include "include/v8.h" Please do not include v8.h here. https://codereview.chromium.org/2190973003/diff/40001/src/libplatform/tracing/trace-object.cc ...
4 years, 4 months ago (2016-07-28 21:18:20 UTC) #15
rskang
https://codereview.chromium.org/2190973003/diff/40001/src/libplatform/tracing/trace-writer.cc File src/libplatform/tracing/trace-writer.cc (right): https://codereview.chromium.org/2190973003/diff/40001/src/libplatform/tracing/trace-writer.cc#newcode75 src/libplatform/tracing/trace-writer.cc:75: EscapeJSONString(isolate_, value.as_string ? value.as_string : "NULL", On 2016/07/28 21:18:20, ...
4 years, 4 months ago (2016-07-28 21:25:54 UTC) #16
rskang
https://codereview.chromium.org/2190973003/diff/40001/include/libplatform/v8-tracing.h File include/libplatform/v8-tracing.h (right): https://codereview.chromium.org/2190973003/diff/40001/include/libplatform/v8-tracing.h#newcode12 include/libplatform/v8-tracing.h:12: #include "include/v8.h" On 2016/07/28 21:18:20, lpy wrote: > Please ...
4 years, 4 months ago (2016-07-28 22:44:27 UTC) #22
rskang
https://codereview.chromium.org/2190973003/diff/40001/src/libplatform/tracing/trace-writer.cc File src/libplatform/tracing/trace-writer.cc (right): https://codereview.chromium.org/2190973003/diff/40001/src/libplatform/tracing/trace-writer.cc#newcode75 src/libplatform/tracing/trace-writer.cc:75: EscapeJSONString(isolate_, value.as_string ? value.as_string : "NULL", On 2016/07/28 21:25:54, ...
4 years, 4 months ago (2016-07-28 22:45:36 UTC) #23
rskang
On 2016/07/28 22:45:36, rskang wrote: > https://codereview.chromium.org/2190973003/diff/40001/src/libplatform/tracing/trace-writer.cc > File src/libplatform/tracing/trace-writer.cc (right): > > https://codereview.chromium.org/2190973003/diff/40001/src/libplatform/tracing/trace-writer.cc#newcode75 > ...
4 years, 4 months ago (2016-07-28 22:47:41 UTC) #24
lpy
https://codereview.chromium.org/2190973003/diff/60001/src/libplatform/tracing/trace-object.cc File src/libplatform/tracing/trace-object.cc (right): https://codereview.chromium.org/2190973003/diff/60001/src/libplatform/tracing/trace-object.cc#newcode9 src/libplatform/tracing/trace-object.cc:9: #include "src/tracing/trace-event.h" libplatform should not depend on V8. https://codereview.chromium.org/2190973003/diff/60001/src/libplatform/tracing/trace-writer.cc ...
4 years, 4 months ago (2016-07-28 22:53:55 UTC) #25
rskang
https://codereview.chromium.org/2190973003/diff/60001/src/libplatform/tracing/trace-object.cc File src/libplatform/tracing/trace-object.cc (right): https://codereview.chromium.org/2190973003/diff/60001/src/libplatform/tracing/trace-object.cc#newcode9 src/libplatform/tracing/trace-object.cc:9: #include "src/tracing/trace-event.h" On 2016/07/28 22:53:54, lpy wrote: > libplatform ...
4 years, 4 months ago (2016-07-28 23:07:09 UTC) #26
lpy
On 2016/07/28 23:07:09, rskang wrote: > https://codereview.chromium.org/2190973003/diff/60001/src/libplatform/tracing/trace-object.cc > File src/libplatform/tracing/trace-object.cc (right): > > https://codereview.chromium.org/2190973003/diff/60001/src/libplatform/tracing/trace-object.cc#newcode9 > ...
4 years, 4 months ago (2016-07-28 23:08:24 UTC) #27
rskang
On 2016/07/28 23:08:24, lpy wrote: > On 2016/07/28 23:07:09, rskang wrote: > > > https://codereview.chromium.org/2190973003/diff/60001/src/libplatform/tracing/trace-object.cc ...
4 years, 4 months ago (2016-07-29 00:03:59 UTC) #34
rskang
https://codereview.chromium.org/2190973003/diff/60001/src/libplatform/tracing/trace-object.cc File src/libplatform/tracing/trace-object.cc (right): https://codereview.chromium.org/2190973003/diff/60001/src/libplatform/tracing/trace-object.cc#newcode9 src/libplatform/tracing/trace-object.cc:9: #include "src/tracing/trace-event.h" On 2016/07/28 23:07:09, rskang wrote: > On ...
4 years, 4 months ago (2016-07-29 00:04:23 UTC) #35
rskang
On 2016/07/29 00:04:23, rskang wrote: > https://codereview.chromium.org/2190973003/diff/60001/src/libplatform/tracing/trace-object.cc > File src/libplatform/tracing/trace-object.cc (right): > > https://codereview.chromium.org/2190973003/diff/60001/src/libplatform/tracing/trace-object.cc#newcode9 > ...
4 years, 4 months ago (2016-07-29 00:07:34 UTC) #36
mattloring
https://codereview.chromium.org/2190973003/diff/100001/test/cctest/libplatform/test-tracing.cc File test/cctest/libplatform/test-tracing.cc (right): https://codereview.chromium.org/2190973003/diff/100001/test/cctest/libplatform/test-tracing.cc#newcode261 test/cctest/libplatform/test-tracing.cc:261: TRACE_EVENT_COPY_INSTANT0(v8.c_str(), mm.c_str(), TRACE_EVENT_SCOPE_THREAD); Could we additionally add a test ...
4 years, 4 months ago (2016-07-29 01:50:50 UTC) #38
rskang
https://codereview.chromium.org/2190973003/diff/100001/test/cctest/libplatform/test-tracing.cc File test/cctest/libplatform/test-tracing.cc (right): https://codereview.chromium.org/2190973003/diff/100001/test/cctest/libplatform/test-tracing.cc#newcode261 test/cctest/libplatform/test-tracing.cc:261: TRACE_EVENT_COPY_INSTANT0(v8.c_str(), mm.c_str(), TRACE_EVENT_SCOPE_THREAD); On 2016/07/29 01:50:50, mattloring wrote: > ...
4 years, 4 months ago (2016-07-29 05:16:26 UTC) #43
fmeawad
https://codereview.chromium.org/2190973003/diff/100001/test/cctest/libplatform/test-tracing.cc File test/cctest/libplatform/test-tracing.cc (right): https://codereview.chromium.org/2190973003/diff/100001/test/cctest/libplatform/test-tracing.cc#newcode264 test/cctest/libplatform/test-tracing.cc:264: TRACE_EVENT_COPY_INSTANT2(v8.c_str(), mm.c_str(), TRACE_EVENT_SCOPE_THREAD, /s/v8.c_str()/"v8"/ Category has to be a ...
4 years, 4 months ago (2016-07-29 14:32:20 UTC) #45
mattloring
lgtm w/ question https://codereview.chromium.org/2190973003/diff/120001/src/libplatform/tracing/trace-object.cc File src/libplatform/tracing/trace-object.cc (right): https://codereview.chromium.org/2190973003/diff/120001/src/libplatform/tracing/trace-object.cc#newcode130 src/libplatform/tracing/trace-object.cc:130: arg_names_[i] = NULL; Why are arg ...
4 years, 4 months ago (2016-07-29 14:32:42 UTC) #46
fmeawad
Loog Good. Some minor comments. https://codereview.chromium.org/2190973003/diff/120001/include/libplatform/v8-tracing.h File include/libplatform/v8-tracing.h (left): https://codereview.chromium.org/2190973003/diff/120001/include/libplatform/v8-tracing.h#oldcode58 include/libplatform/v8-tracing.h:58: int num_args_; I don't ...
4 years, 4 months ago (2016-07-29 14:57:06 UTC) #48
fmeawad
Looks Good. Some minor comments.
4 years, 4 months ago (2016-07-29 14:57:12 UTC) #49
rskang
Addressed comments. PTAL https://codereview.chromium.org/2190973003/diff/100001/test/cctest/libplatform/test-tracing.cc File test/cctest/libplatform/test-tracing.cc (right): https://codereview.chromium.org/2190973003/diff/100001/test/cctest/libplatform/test-tracing.cc#newcode264 test/cctest/libplatform/test-tracing.cc:264: TRACE_EVENT_COPY_INSTANT2(v8.c_str(), mm.c_str(), TRACE_EVENT_SCOPE_THREAD, On 2016/07/29 14:32:20, ...
4 years, 4 months ago (2016-07-29 19:48:13 UTC) #54
lpy
LGTM from my side, but wait for Fadi's review. A few nits. https://codereview.chromium.org/2190973003/diff/160001/src/libplatform/tracing/trace-object.cc File src/libplatform/tracing/trace-object.cc ...
4 years, 4 months ago (2016-08-02 00:07:10 UTC) #59
rskang
https://codereview.chromium.org/2190973003/diff/160001/src/libplatform/tracing/trace-object.cc File src/libplatform/tracing/trace-object.cc (right): https://codereview.chromium.org/2190973003/diff/160001/src/libplatform/tracing/trace-object.cc#newcode17 src/libplatform/tracing/trace-object.cc:17: size_t GetAllocLength(const char* str) { return str ? strlen(str) ...
4 years, 4 months ago (2016-08-02 00:46:55 UTC) #62
fmeawad
On 2016/08/02 00:46:55, rskang wrote: > https://codereview.chromium.org/2190973003/diff/160001/src/libplatform/tracing/trace-object.cc > File src/libplatform/tracing/trace-object.cc (right): > > https://codereview.chromium.org/2190973003/diff/160001/src/libplatform/tracing/trace-object.cc#newcode17 > ...
4 years, 4 months ago (2016-08-02 11:04:49 UTC) #65
fmeawad
On 2016/08/02 11:04:49, fmeawad wrote: > On 2016/08/02 00:46:55, rskang wrote: > > > https://codereview.chromium.org/2190973003/diff/160001/src/libplatform/tracing/trace-object.cc ...
4 years, 4 months ago (2016-08-02 11:05:16 UTC) #66
jochen (gone - plz use gerrit)
lgtm
4 years, 4 months ago (2016-08-02 15:30:42 UTC) #69
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/2190973003/180001
4 years, 4 months ago (2016-08-02 17:10:46 UTC) #73
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 4 months ago (2016-08-02 17:12:28 UTC) #75
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/9a6a56d21fd606415685d2078d120f6acb9a2027 Cr-Commit-Position: refs/heads/master@{#38255}
4 years, 4 months ago (2016-08-02 17:13:23 UTC) #77
Nico
4 years, 4 months ago (2016-08-03 19:34:51 UTC) #79
Message was sent while issue was closed.
https://codereview.chromium.org/2190973003/diff/180001/src/libplatform/tracin...
File src/libplatform/tracing/trace-object.cc (right):

https://codereview.chromium.org/2190973003/diff/180001/src/libplatform/tracin...
src/libplatform/tracing/trace-object.cc:7: #include
"base/trace_event/common/trace_event_common.h"
This is no good, things not in chromium's repo must not include base headers.
Please fix. I filed https://bugs.chromium.org/p/chromium/issues/detail?id=634087
for this.

Powered by Google App Engine
This is Rietveld 408576698