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

Unified Diff: Source/core/workers/WorkerThread.cpp

Issue 552323002: DevTools: log worker thread ids on the main thread when Timeline recording is enabled (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/core/workers/WorkerThread.cpp
diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp
index 988256e367b9a256b1245ff2fdac409fb9aa786d..688ae2f09d43c5e0d563d06dad9ffb780e3aebcb 100644
--- a/Source/core/workers/WorkerThread.cpp
+++ b/Source/core/workers/WorkerThread.cpp
@@ -236,6 +236,13 @@ void WorkerThread::interruptAndDispatchInspectorCommands()
m_workerInspectorController->interruptAndDispatchInspectorCommands();
}
+PlatformThreadId WorkerThread::platformThreadId() const
+{
+ if (!m_thread)
loislo 2014/09/09 13:59:44 Looks like it could be converted into ASSERT
yurys 2014/09/09 15:08:37 In theory WorkerThread::start can be called asynch
+ return 0;
+ return m_thread->threadId();
+}
+
void WorkerThread::initialize()
{
KURL scriptURL = m_startupData->m_scriptURL;

Powered by Google App Engine
This is Rietveld 408576698