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

Issue 1857903002: Record parser blocking time for scripts inserted via doc.write (Closed)

Created:
4 years, 8 months ago by Bryan McQuade
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, kinuko+watch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Record amount of time the parser is blocked on script load, for scripts inserted via document.write. This is an important metric for Project NeverIdle: https://docs.google.com/document/d/1vUqy6uke6U1nalT6qlHbzl1LaXPHn9fLSXxGgUbMAxA/edit BUG=588724 Committed: https://crrev.com/cdaf10433011efe4c83c569b29e7957a0959dd3c Cr-Commit-Position: refs/heads/master@{#385842}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -5 lines) Patch
M third_party/WebKit/Source/core/dom/DocumentParserTiming.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -3 lines 1 comment Download
M third_party/WebKit/Source/core/dom/DocumentParserTiming.cpp View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceTiming.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceTiming.cpp View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebPerformance.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebPerformance.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (7 generated)
Charlie Harrison
Looks good! https://codereview.chromium.org/1857903002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp File third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp (right): https://codereview.chromium.org/1857903002/diff/1/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp#newcode220 third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp:220: DocumentParserTiming::from(*m_document).recordParserBlockedOnScriptLoadDuration(monotonicallyIncreasingTime() - scriptParserBlockingTime, scriptLoader->createdDuringDocumentWrite()); You can add ...
4 years, 8 months ago (2016-04-04 19:00:17 UTC) #2
jkarlin
This will be great to have. Looks good.
4 years, 8 months ago (2016-04-04 19:10:59 UTC) #4
Bryan McQuade
kouhei, PTAL for HTMLScriptRunner etc japhet, PTAL for blink public csharrison, jkarlin, PTAL for overall ...
4 years, 8 months ago (2016-04-04 21:27:29 UTC) #7
Charlie Harrison
https://codereview.chromium.org/1857903002/diff/120001/third_party/WebKit/Source/core/dom/DocumentParserTiming.h File third_party/WebKit/Source/core/dom/DocumentParserTiming.h (right): https://codereview.chromium.org/1857903002/diff/120001/third_party/WebKit/Source/core/dom/DocumentParserTiming.h#newcode67 third_party/WebKit/Source/core/dom/DocumentParserTiming.h:67: double parserBlockedOnScriptLoadFromDocumentWriteDuration() const { return m_parserBlockedOnScriptLoadFromDocumentWriteDuration; } Can you ...
4 years, 8 months ago (2016-04-04 21:33:26 UTC) #8
kouhei (in TOK)
lgtm
4 years, 8 months ago (2016-04-05 13:22:29 UTC) #9
Bryan McQuade
Thanks for opening the bug! Comment added. https://codereview.chromium.org/1857903002/diff/120001/third_party/WebKit/Source/core/dom/DocumentParserTiming.h File third_party/WebKit/Source/core/dom/DocumentParserTiming.h (right): https://codereview.chromium.org/1857903002/diff/120001/third_party/WebKit/Source/core/dom/DocumentParserTiming.h#newcode67 third_party/WebKit/Source/core/dom/DocumentParserTiming.h:67: double parserBlockedOnScriptLoadFromDocumentWriteDuration() ...
4 years, 8 months ago (2016-04-05 15:14:11 UTC) #10
Charlie Harrison
lgtm
4 years, 8 months ago (2016-04-06 13:33:40 UTC) #11
Nate Chapin
LGTM https://codereview.chromium.org/1857903002/diff/160001/third_party/WebKit/Source/core/dom/DocumentParserTiming.h File third_party/WebKit/Source/core/dom/DocumentParserTiming.h (right): https://codereview.chromium.org/1857903002/diff/160001/third_party/WebKit/Source/core/dom/DocumentParserTiming.h#newcode48 third_party/WebKit/Source/core/dom/DocumentParserTiming.h:48: // script causing blocking was inserted via document.write. ...
4 years, 8 months ago (2016-04-07 16:29:31 UTC) #12
Bryan McQuade
On 2016/04/07 at 16:29:31, japhet wrote: > LGTM > > https://codereview.chromium.org/1857903002/diff/160001/third_party/WebKit/Source/core/dom/DocumentParserTiming.h > File third_party/WebKit/Source/core/dom/DocumentParserTiming.h (right): ...
4 years, 8 months ago (2016-04-07 17:36:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1857903002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1857903002/160001
4 years, 8 months ago (2016-04-07 17:36:39 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-07 19:47:19 UTC) #17
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 19:48:19 UTC) #19
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/cdaf10433011efe4c83c569b29e7957a0959dd3c
Cr-Commit-Position: refs/heads/master@{#385842}

Powered by Google App Engine
This is Rietveld 408576698