Asynchronously loaded JS files may be parsed on the SriptStreamerThread. But currently DevTools Timeline doesn't show the parse events.
Created a cl. https://codereview.chromium.org/1807193003/
Thanks for doing this horo. These events have been phantoms!
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/23441ef2a1903a977eea7feef9160ef80cf19e8c commit 23441ef2a1903a977eea7feef9160ef80cf19e8c Author: horo <horo@chromium.org> Date: Fri Mar 25 06:52:31 2016 Show v8.parseOnBackground in DevTools Timeline BUG= 595985 Review URL: https://codereview.chromium.org/1807193003 Cr-Commit-Position: refs/heads/master@{#383259} [add] https://crrev.com/23441ef2a1903a977eea7feef9160ef80cf19e8c/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/resources/timeline-script-parse.php [add] https://crrev.com/23441ef2a1903a977eea7feef9160ef80cf19e8c/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-script-parse-expected.txt [add] https://crrev.com/23441ef2a1903a977eea7feef9160ef80cf19e8c/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-script-parse.html [modify] https://crrev.com/23441ef2a1903a977eea7feef9160ef80cf19e8c/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp [modify] https://crrev.com/23441ef2a1903a977eea7feef9160ef80cf19e8c/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h [modify] https://crrev.com/23441ef2a1903a977eea7feef9160ef80cf19e8c/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp [modify] https://crrev.com/23441ef2a1903a977eea7feef9160ef80cf19e8c/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp [modify] https://crrev.com/23441ef2a1903a977eea7feef9160ef80cf19e8c/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.h [modify] https://crrev.com/23441ef2a1903a977eea7feef9160ef80cf19e8c/third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js [modify] https://crrev.com/23441ef2a1903a977eea7feef9160ef80cf19e8c/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
Now we can see "Parse Script" in Timeline of DevTools. Yey!
$ git find-releases 23441ef2a1903a977eea7feef9160ef80cf19e8c commit 23441ef2a1903a977eea7feef9160ef80cf19e8c was: initially in 51.0.2691.0
Comment 1 by horo@chromium.org
, Mar 18 2016