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

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: Rebase 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
« no previous file with comments | « Source/core/workers/WorkerThread.h ('k') | Source/devtools/front_end/timeline/TracingModel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerThread.cpp
diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp
index d21a6c6c4d4d062793166c9034f88de64471dd07..6b444d379c3e6da148216e69ff8901912ea97fad 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)
+ return 0;
+ return m_thread->threadId();
+}
+
void WorkerThread::initialize()
{
KURL scriptURL = m_startupData->m_scriptURL;
« no previous file with comments | « Source/core/workers/WorkerThread.h ('k') | Source/devtools/front_end/timeline/TracingModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698