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

Unified Diff: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp

Issue 1913283003: [DevTools] Rework idle{Started,Finished} instrumentation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1907663005
Patch Set: rebased Created 4 years, 8 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: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
index 0ef90d1f6d2bb7403fd3e7d385346f0ef67c87fa..aa84f87d34f2dc1b1180a633982d3834c386c540 100644
--- a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
@@ -47,6 +47,20 @@ void ThreadDebugger::didExecuteScript(v8::Isolate* isolate)
data->threadDebugger()->debugger()->didExecuteScript(isolate->GetCurrentContext());
}
+void ThreadDebugger::idleStarted(v8::Isolate* isolate)
+{
+ V8PerIsolateData* data = V8PerIsolateData::from(isolate);
+ if (data && data->threadDebugger())
+ data->threadDebugger()->debugger()->idleStarted();
+}
+
+void ThreadDebugger::idleFinished(v8::Isolate* isolate)
+{
+ V8PerIsolateData* data = V8PerIsolateData::from(isolate);
+ if (data && data->threadDebugger())
+ data->threadDebugger()->debugger()->idleFinished();
+}
+
void ThreadDebugger::eventListeners(v8::Local<v8::Value> value, V8EventListenerInfoList& result)
{
InspectorDOMDebuggerAgent::eventListenersInfoForTarget(m_isolate, value, result);
« no previous file with comments | « third_party/WebKit/Source/core/inspector/ThreadDebugger.h ('k') | third_party/WebKit/Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698