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

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

Issue 2474073005: DevTools: add the logging aspect into the PerformanceMonitor (Closed)
Patch Set: test fixed Created 4 years, 1 month 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: 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 e4e8c62aa28ab175678fbdf3d3d01493ff47ba47..19ade41a1a578b7f48237d994f4712a66884ee44 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
@@ -524,6 +524,7 @@ v8::MaybeLocal<v8::Value> V8ScriptRunner::runCompiledScript(
script->GetUnboundScript()->GetId());
result = script->Run(isolate->GetCurrentContext());
ThreadDebugger::didExecuteScript(isolate);
+ PerformanceMonitor::didExecuteScript(context);
}
crashIfIsolateIsDead(isolate);
@@ -637,6 +638,7 @@ v8::MaybeLocal<v8::Value> V8ScriptRunner::callFunction(
function->Call(isolate->GetCurrentContext(), receiver, argc, args);
crashIfIsolateIsDead(isolate);
ThreadDebugger::didExecuteScript(isolate);
+ PerformanceMonitor::didExecuteScript(context);
if (!depth)
TRACE_EVENT_END0("devtools.timeline", "FunctionCall");
return result;
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/input-event-warning.html ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698