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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp

Issue 2713553010: Migrate performance monitor to inspector instrumentation. (Closed)
Patch Set: Introduce progress monitor Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
index dac4a0b7b70320a30c68ac1e40d9de7ed05e05d0..19ef903ba5cbd29e2a0890e1e8cc642cdb8500b7 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
@@ -35,7 +35,7 @@
#include "core/dom/ExecutionContext.h"
#include "core/frame/LocalDOMWindow.h"
#include "core/frame/LocalFrame.h"
-#include "core/frame/PerformanceMonitor.h"
+#include "core/inspector/InspectorInstrumentation.h"
#include "core/inspector/InspectorTraceEvents.h"
#include "core/inspector/ThreadDebugger.h"
#include "core/loader/resource/ScriptResource.h"
@@ -540,12 +540,12 @@ v8::MaybeLocal<v8::Value> V8ScriptRunner::runCompiledScript(
}
v8::MicrotasksScope microtasksScope(isolate,
v8::MicrotasksScope::kRunMicrotasks);
- PerformanceMonitor::willExecuteScript(context);
+ InspectorInstrumentation::willExecuteScript(context);
ThreadDebugger::willExecuteScript(isolate,
script->GetUnboundScript()->GetId());
result = script->Run(isolate->GetCurrentContext());
ThreadDebugger::didExecuteScript(isolate);
- PerformanceMonitor::didExecuteScript(context);
+ InspectorInstrumentation::didExecuteScript(context);
}
CHECK(!isolate->IsDead());
@@ -659,13 +659,13 @@ v8::MaybeLocal<v8::Value> V8ScriptRunner::callFunction(
CHECK(!ThreadState::current()->isWrapperTracingForbidden());
v8::MicrotasksScope microtasksScope(isolate,
v8::MicrotasksScope::kRunMicrotasks);
- PerformanceMonitor::willCallFunction(context);
+ InspectorInstrumentation::willCallFunction(context);
ThreadDebugger::willExecuteScript(isolate, function->ScriptId());
v8::MaybeLocal<v8::Value> result =
function->Call(isolate->GetCurrentContext(), receiver, argc, args);
CHECK(!isolate->IsDead());
ThreadDebugger::didExecuteScript(isolate);
- PerformanceMonitor::didCallFunction(context, function);
+ InspectorInstrumentation::didCallFunction(context, function);
if (!depth)
TRACE_EVENT_END0("devtools.timeline", "FunctionCall");
return result;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698