Chromium Code Reviews| Index: Source/core/inspector/InspectorTraceEvents.cpp |
| diff --git a/Source/core/inspector/InspectorTraceEvents.cpp b/Source/core/inspector/InspectorTraceEvents.cpp |
| index efa66df4ba0e0292bf335bf5b7cca04896f62fb0..b0dc9d9eee8479b5f7d192228d6b338cae12b75d 100644 |
| --- a/Source/core/inspector/InspectorTraceEvents.cpp |
| +++ b/Source/core/inspector/InspectorTraceEvents.cpp |
| @@ -17,6 +17,7 @@ |
| #include "core/page/Page.h" |
| #include "core/rendering/RenderImage.h" |
| #include "core/rendering/RenderObject.h" |
| +#include "core/workers/WorkerThread.h" |
| #include "core/xml/XMLHttpRequest.h" |
| #include "platform/JSONValues.h" |
| #include "platform/TracedValue.h" |
| @@ -355,4 +356,12 @@ PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimeStampEvent::data(E |
| return value; |
| } |
| +PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTracingStartedInWorkerEvent::data(const String& sessionId, WorkerThread* workerThread) |
| +{ |
| + RefPtr<TracedValue> value = TracedValue::create(); |
| + value->setString("sessionId", sessionId); |
| + value->setDouble("workerThreadId", workerThread->platformThreadId()); |
|
loislo
2014/09/09 13:59:44
do we have a guaranty that workerThread object is
yurys
2014/09/09 14:04:27
We don't need the thread to be alive there as we r
loislo
2014/09/09 14:14:08
ok
|
| + return value; |
| +} |
| + |
| } |