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

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: 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 c987ba9e338d18ca3d2c2b7af0ede0b8ca7aa3e3..31572163aa472dcecc0ab9bd9e151eb4b84f4390 100644
--- a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
@@ -46,6 +46,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)
alph 2016/04/23 01:46:49 nit: missing space
dgozman 2016/04/25 21:30:25 Done.
+{
+ 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