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

Issue 2471583004: [Tracing] Make TracingCategoryObserver v8 internal. (Closed)

Created:
4 years, 1 month ago by lpy
Modified:
4 years, 1 month ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Tracing] Make TracingCategoryObserver v8 internal. This patch removes TracingCategoryObserver API and moves the creation of observer inside platform initialization, by assuming that either Platform::AddTraceStateObserver is implemented correctly to add observer to tracing controller that implemented by embedders, or default tracing controller has already been set up and attached to platform before v8::V8::InitializePlatform is called. BUG=v8:5590 Committed: https://crrev.com/2525b0573b28e929a25a41ac7b57bdb84d9abf40 Cr-Commit-Position: refs/heads/master@{#40739}

Patch Set 1 #

Total comments: 6

Patch Set 2 : address alph's comments #

Total comments: 1

Patch Set 3 : use unique_ptr #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -68 lines) Patch
M BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
D include/v8-tracing.h View 1 chunk +0 lines, -29 lines 0 comments Download
M src/d8.cc View 1 2 7 chunks +16 lines, -21 lines 1 comment Download
M src/tracing/tracing-category-observer.h View 1 1 chunk +15 lines, -5 lines 0 comments Download
M src/tracing/tracing-category-observer.cc View 1 3 chunks +12 lines, -10 lines 0 comments Download
M src/v8.cc View 2 chunks +3 lines, -1 line 0 comments Download
M src/v8.gyp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 69 (52 generated)
lpy
PTAL.
4 years, 1 month ago (2016-11-02 18:24:32 UTC) #4
fmeawad
I like this approach better because I believe that Embedders should not be aware of ...
4 years, 1 month ago (2016-11-02 18:37:21 UTC) #5
alph
Thank you. lgtm https://codereview.chromium.org/2471583004/diff/1/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/2471583004/diff/1/src/d8.cc#newcode2834 src/d8.cc:2834: platform::SetTracingController(g_platform, tracing_controller); who is responsible for ...
4 years, 1 month ago (2016-11-02 20:18:23 UTC) #39
lpy
Thanks, I updated the comments. https://codereview.chromium.org/2471583004/diff/1/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/2471583004/diff/1/src/d8.cc#newcode2834 src/d8.cc:2834: platform::SetTracingController(g_platform, tracing_controller); On 2016/11/02 ...
4 years, 1 month ago (2016-11-02 21:52:27 UTC) #43
lpy
On 2016/11/02 21:52:27, lpy wrote: > Thanks, I updated the comments. > ah sorry, I ...
4 years, 1 month ago (2016-11-02 21:53:19 UTC) #44
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/2471583004/160001
4 years, 1 month ago (2016-11-02 22:24:02 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/27708)
4 years, 1 month ago (2016-11-02 22:27:32 UTC) #51
lpy
+ jochen@ for review. PTAL.
4 years, 1 month ago (2016-11-02 22:28:15 UTC) #53
alph
https://codereview.chromium.org/2471583004/diff/160001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/2471583004/diff/160001/src/d8.cc#newcode2955 src/d8.cc:2955: delete tracing_controller; nit: using unique_ptr would help you avoid ...
4 years, 1 month ago (2016-11-02 22:31:52 UTC) #54
lpy
On 2016/11/02 22:31:52, alph wrote: > https://codereview.chromium.org/2471583004/diff/160001/src/d8.cc > File src/d8.cc (right): > > https://codereview.chromium.org/2471583004/diff/160001/src/d8.cc#newcode2955 > ...
4 years, 1 month ago (2016-11-02 22:34:41 UTC) #55
jochen (gone - plz use gerrit)
lgtm
4 years, 1 month ago (2016-11-03 11:55:27 UTC) #56
alph
On 2016/11/02 22:34:41, lpy wrote: > On 2016/11/02 22:31:52, alph wrote: > > https://codereview.chromium.org/2471583004/diff/160001/src/d8.cc > ...
4 years, 1 month ago (2016-11-03 15:07:39 UTC) #57
lpy
On 2016/11/03 15:07:39, alph wrote: > On 2016/11/02 22:34:41, lpy wrote: > > On 2016/11/02 ...
4 years, 1 month ago (2016-11-03 16:47:31 UTC) #60
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/2471583004/180001
4 years, 1 month ago (2016-11-03 18:01:02 UTC) #65
commit-bot: I haz the power
Committed patchset #3 (id:180001)
4 years, 1 month ago (2016-11-03 18:03:31 UTC) #66
alph
https://codereview.chromium.org/2471583004/diff/180001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/2471583004/diff/180001/src/d8.cc#newcode2834 src/d8.cc:2834: platform::SetTracingController(g_platform, tracing_controller.get()); you can use release right here. it ...
4 years, 1 month ago (2016-11-03 20:19:27 UTC) #67
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:21:23 UTC) #69
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2525b0573b28e929a25a41ac7b57bdb84d9abf40
Cr-Commit-Position: refs/heads/master@{#40739}

Powered by Google App Engine
This is Rietveld 408576698