| Index: Source/WebCore/bindings/dart/DartController.cpp
|
| diff --git a/Source/WebCore/bindings/dart/DartController.cpp b/Source/WebCore/bindings/dart/DartController.cpp
|
| index 90e1511ef536407c97502caf801010c302d3787d..1ccee8b5585ab7da614339d9d59c04ae3c588b7c 100644
|
| --- a/Source/WebCore/bindings/dart/DartController.cpp
|
| +++ b/Source/WebCore/bindings/dart/DartController.cpp
|
| @@ -44,6 +44,7 @@
|
| #include "HTMLNames.h"
|
| #include "HTMLScriptElement.h"
|
| #include "IDBPendingTransactionMonitor.h"
|
| +#include "InspectorInstrumentation.h"
|
| #include "NodeList.h"
|
| #include "Page.h"
|
| #include "PageGroup.h"
|
| @@ -57,6 +58,22 @@
|
|
|
| namespace WebCore {
|
|
|
| +class Timeline {
|
| +public:
|
| + Timeline(Frame* frame, String tag)
|
| + {
|
| + m_cookie = InspectorInstrumentation::willEvaluateScript(frame, tag, 0);
|
| + }
|
| +
|
| + ~Timeline()
|
| + {
|
| + InspectorInstrumentation::didEvaluateScript(m_cookie);
|
| + }
|
| +
|
| +private:
|
| + InspectorInstrumentationCookie m_cookie;
|
| +};
|
| +
|
| static void initDOMIsolate()
|
| {
|
| DartApiScope dartApiScope;
|
| @@ -265,6 +282,7 @@ void DartController::evaluate(const ScriptSourceCode& sourceCode)
|
|
|
| void DartController::loadScripts()
|
| {
|
| + Timeline timeline(frame(), "DC::loadScripts");
|
| initVMIfNeeded();
|
|
|
| Vector<RefPtr<HTMLScriptElement> > dartScripts;
|
|
|