Web Inspector: Timeline: record root event for the function calls enforced by console...
authorloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Sep 2011 12:12:34 +0000 (12:12 +0000)
committerloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Sep 2011 12:12:34 +0000 (12:12 +0000)
commita911f12250e9103648baf69c03262911d5bfccde
treee6e44664824e611c4b0ee01acb4c437a404a957a
parent069e93c4e8ebb2401e5a8fc2e13b558fb646500e
Web Inspector: Timeline: record root event for the function calls enforced by console eval.
https://bugs.webkit.org/show_bug.cgi?id=68695

In a complex web application developer might want to timeline a specific piece of code.

In this case he can do the next steps:
1) start timeline;
2) eval a command in console;
3) stop timeline.

I think it'd be nice to have a root event for the all the events that happened as the result of such eval.

Reviewed by Yury Semikhatsky.

Source/WebCore:

Test: inspector/timeline/timeline-injected-script-eval.html

* bindings/v8/ScriptFunctionCall.cpp:
* inspector/InjectedScript.cpp:
(WebCore::InjectedScript::makeCall):
* inspector/InspectorInstrumentation.cpp:
(WebCore::InspectorInstrumentation::willCallFunctionImpl):

LayoutTests:

* inspector/timeline/timeline-injected-script-eval-expected.txt: Added.
* inspector/timeline/timeline-injected-script-eval.html: Added.
* platform/chromium/inspector/timeline/timeline-injected-script-eval-expected.txt: Added.
* platform/chromium/inspector/timeline/timeline-receive-response-event-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@95941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/timeline/timeline-injected-script-eval-expected.txt [new file with mode: 0644]
LayoutTests/inspector/timeline/timeline-injected-script-eval.html [new file with mode: 0644]
LayoutTests/platform/chromium/inspector/timeline/timeline-injected-script-eval-expected.txt [new file with mode: 0644]
LayoutTests/platform/chromium/inspector/timeline/timeline-receive-response-event-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/inspector/InjectedScript.cpp
Source/WebCore/inspector/InspectorInstrumentation.cpp