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

Unified Diff: Source/WebCore/bindings/dart/DartController.cpp

Issue 9260001: Instrumentations to trace Swarm startup. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « Source/WebCore/bindings/dart/DartApplicationLoader.cpp ('k') | Source/WebCore/bindings/dart/DartIsolateState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698