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

Issue 2962353002: Add probe for V8.Complie (Closed)

Created:
3 years, 5 months ago by Liquan (Max) Gu
Modified:
3 years, 4 months ago
CC:
chromium-reviews, blink-reviews, hiroshige+script_chromium.org, kouhei+script_chromium.org, blink-reviews-bindings_chromium.org, kochi+script_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a probe for V8.Complie in order to measure the time of compiling script for V8. BUG=738495 Review-Url: https://codereview.chromium.org/2962353002 Cr-Commit-Position: refs/heads/master@{#488471} Committed: https://chromium.googlesource.com/chromium/src/+/e51107e73a6f93cfb447d6f5b432c100ef31d309

Patch Set 1 : add histogram #

Total comments: 2

Patch Set 2 : remove implementation #

Total comments: 4

Patch Set 3 : correct executionContext usage #

Total comments: 2

Patch Set 4 : Replace ScriptState with isolate and ExecutionState. #

Patch Set 5 : fix tests #

Total comments: 4

Patch Set 6 : switch to use isolate--context--scriptState #

Patch Set 7 : revert to "correct executionContext usage" #

Total comments: 2

Patch Set 8 : remove execution context, use nullptr #

Total comments: 1

Patch Set 9 : update Todos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -1 line) Patch
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/PerformanceMonitor.h View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/probe/CoreProbes.json5 View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/probe/CoreProbes.pidl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 65 (26 generated)
Liquan (Max) Gu
Next step is to implement the measurement of time in the probe.
3 years, 5 months ago (2017-07-13 21:19:20 UTC) #4
Liquan (Max) Gu
By the way, this issue haven't been buganized yet. Do we need to create one?
3 years, 5 months ago (2017-07-13 21:21:09 UTC) #5
Liquan (Max) Gu
Do we care LongV8Compile especially or just V8Compile?
3 years, 5 months ago (2017-07-14 20:02:34 UTC) #7
Liquan (Max) Gu
PTAL. Just to make sure it's going to the right direction.
3 years, 5 months ago (2017-07-14 22:14:30 UTC) #11
panicker
looks sane overall. +caseq, alph
3 years, 5 months ago (2017-07-14 23:34:51 UTC) #13
panicker
https://codereview.chromium.org/2962353002/diff/100001/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp File third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp (right): https://codereview.chromium.org/2962353002/diff/100001/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp#newcode207 third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp:207: probe.CaptureStartTime(); Let's move time capture to separate CL as ...
3 years, 5 months ago (2017-07-14 23:39:19 UTC) #14
alph
lgtm modulo Shubhie's comment.
3 years, 5 months ago (2017-07-15 00:34:47 UTC) #15
Liquan (Max) Gu
https://codereview.chromium.org/2962353002/diff/100001/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp File third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp (right): https://codereview.chromium.org/2962353002/diff/100001/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp#newcode207 third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp:207: probe.CaptureStartTime(); On 2017/07/14 23:39:19, panicker wrote: > Let's move ...
3 years, 5 months ago (2017-07-17 14:47:21 UTC) #16
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/2962353002/120001
3 years, 5 months ago (2017-07-17 14:47:36 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/491206)
3 years, 5 months ago (2017-07-17 15:01:29 UTC) #21
Liquan (Max) Gu
+japhet@ owner. PTAL, thanks! third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp third_party/WebKit/Source/core/frame/PerformanceMonitor.h
3 years, 5 months ago (2017-07-17 15:22:42 UTC) #23
haraken
Would you help me understand why probe::V8Compile needs ExecutionContext? I guess it would make more ...
3 years, 5 months ago (2017-07-17 16:16:24 UTC) #25
Liquan (Max) Gu
Thanks @haraken. I am not sure why we use execution context or v8::context actually, but ...
3 years, 5 months ago (2017-07-17 20:39:52 UTC) #26
panicker
On 2017/07/17 20:39:52, Liquan (Max) Gu wrote: > Thanks @haraken. I am not sure why ...
3 years, 5 months ago (2017-07-17 21:38:12 UTC) #27
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/2962353002/140001
3 years, 5 months ago (2017-07-17 22:02:55 UTC) #30
haraken
LGTM with one request for a follow-up. https://codereview.chromium.org/2962353002/diff/140001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h File third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h (right): https://codereview.chromium.org/2962353002/diff/140001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h#newcode56 third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h:56: static v8::MaybeLocal<v8::Script> ...
3 years, 5 months ago (2017-07-18 05:18:17 UTC) #32
Liquan (Max) Gu
I am blocked on the failure of DocumentWriteEvaluatorTest. Should I adjust the setup of the ...
3 years, 5 months ago (2017-07-18 21:18:50 UTC) #33
haraken
https://codereview.chromium.org/2962353002/diff/180001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp File third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp (right): https://codereview.chromium.org/2962353002/diff/180001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp#newcode597 third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp:597: ScriptState::From(isolate->GetCurrentContext()), source, file_name, On 2017/07/18 21:18:50, Liquan (Max) Gu ...
3 years, 5 months ago (2017-07-19 05:51:19 UTC) #35
Liquan (Max) Gu
On 2017/07/19 05:51:19, haraken wrote: > https://codereview.chromium.org/2962353002/diff/180001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp > File third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp (right): > > https://codereview.chromium.org/2962353002/diff/180001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp#newcode597 > ...
3 years, 5 months ago (2017-07-19 14:59:57 UTC) #37
Liquan (Max) Gu
https://codereview.chromium.org/2962353002/diff/180001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunnerTest.cpp File third_party/WebKit/Source/bindings/core/v8/V8ScriptRunnerTest.cpp (right): https://codereview.chromium.org/2962353002/diff/180001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunnerTest.cpp#newcode63 third_party/WebKit/Source/bindings/core/v8/V8ScriptRunnerTest.cpp:63: ScriptState::Current(isolate), On 2017/07/19 05:51:19, haraken wrote: > > Using ...
3 years, 5 months ago (2017-07-19 15:04:44 UTC) #38
Yuki
On 2017/07/19 14:59:57, Liquan (Max) Gu wrote: > On 2017/07/19 05:51:19, haraken wrote: > > ...
3 years, 5 months ago (2017-07-19 15:15:20 UTC) #39
Liquan (Max) Gu
On 2017/07/19 15:15:20, Yuki wrote: > On 2017/07/19 14:59:57, Liquan (Max) Gu wrote: > > ...
3 years, 5 months ago (2017-07-19 15:45:36 UTC) #40
panicker
On 2017/07/19 15:15:20, Yuki wrote: > On 2017/07/19 14:59:57, Liquan (Max) Gu wrote: > > ...
3 years, 5 months ago (2017-07-19 15:49:56 UTC) #41
Liquan (Max) Gu
On 2017/07/19 15:49:56, panicker wrote: > On 2017/07/19 15:15:20, Yuki wrote: > > On 2017/07/19 ...
3 years, 5 months ago (2017-07-19 19:07:12 UTC) #42
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/2962353002/240001
3 years, 5 months ago (2017-07-19 19:07:41 UTC) #45
haraken
LGTM assuming that this CL passes all tests. https://codereview.chromium.org/2962353002/diff/240001/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp File third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp (right): https://codereview.chromium.org/2962353002/diff/240001/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp#newcode146 third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp:146: ExecutionContext::From(ScriptState::Current(isolate)), ...
3 years, 5 months ago (2017-07-19 19:16:21 UTC) #46
Liquan (Max) Gu
https://codereview.chromium.org/2962353002/diff/240001/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp File third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp (right): https://codereview.chromium.org/2962353002/diff/240001/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp#newcode146 third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp:146: ExecutionContext::From(ScriptState::Current(isolate)), On 2017/07/19 19:16:20, haraken wrote: > > I'm ...
3 years, 5 months ago (2017-07-19 19:33:49 UTC) #48
haraken
On 2017/07/19 19:33:49, Liquan (Max) Gu wrote: > https://codereview.chromium.org/2962353002/diff/240001/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp > File third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp > (right): > ...
3 years, 5 months ago (2017-07-19 19:37:48 UTC) #49
Liquan (Max) Gu
On 2017/07/19 19:37:48, haraken wrote: > On 2017/07/19 19:33:49, Liquan (Max) Gu wrote: > > ...
3 years, 5 months ago (2017-07-19 19:39:52 UTC) #50
haraken
On 2017/07/19 19:39:52, Liquan (Max) Gu wrote: > On 2017/07/19 19:37:48, haraken wrote: > > ...
3 years, 5 months ago (2017-07-19 19:48:54 UTC) #51
panicker
On 2017/07/19 19:48:54, haraken wrote: > On 2017/07/19 19:39:52, Liquan (Max) Gu wrote: > > ...
3 years, 5 months ago (2017-07-19 23:16:28 UTC) #53
Liquan (Max) Gu
I've removed execution context and use nullptr instead.
3 years, 5 months ago (2017-07-20 14:10:24 UTC) #54
haraken
LGTM BTW if it's fine to pass nullptr to ExecutionContext*, I'd prefer removing the ExecutionContext* ...
3 years, 5 months ago (2017-07-20 15:26:35 UTC) #55
Yuki
Liquan, could you kindly elaborate the problem you have again? I patched your CL locally, ...
3 years, 5 months ago (2017-07-20 17:35:27 UTC) #56
panicker
LGTM https://codereview.chromium.org/2962353002/diff/280001/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp File third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp (right): https://codereview.chromium.org/2962353002/diff/280001/third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp#newcode207 third_party/WebKit/Source/core/frame/PerformanceMonitor.cpp:207: // Todo(maxlg) bug 738495: intentionally leave out as ...
3 years, 5 months ago (2017-07-20 19:22:38 UTC) #57
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/2962353002/300001
3 years, 5 months ago (2017-07-20 20:13:01 UTC) #60
Liquan (Max) Gu
On 2017/07/20 15:26:35, haraken wrote: > LGTM > > BTW if it's fine to pass ...
3 years, 5 months ago (2017-07-20 20:40:25 UTC) #61
Liquan (Max) Gu
On 2017/07/20 17:35:27, Yuki wrote: > Liquan, could you kindly elaborate the problem you have ...
3 years, 5 months ago (2017-07-20 20:50:37 UTC) #62
commit-bot: I haz the power
3 years, 5 months ago (2017-07-20 23:08:18 UTC) #65
Message was sent while issue was closed.
Committed patchset #9 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/e51107e73a6f93cfb447d6f5b432...

Powered by Google App Engine
This is Rietveld 408576698