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

Unified Diff: Source/devtools/front_end/timeline/TimelineModel.js

Issue 1186883007: DevTools: Update dedicated workers thread name. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « LayoutTests/inspector/tracing/worker-js-profile-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/TimelineModel.js
diff --git a/Source/devtools/front_end/timeline/TimelineModel.js b/Source/devtools/front_end/timeline/TimelineModel.js
index 31ff2ba65c9e19d3579fabf6d1b9c1ffc95e151b..8e22d373c6df69ad611c1eb127323db5dcf1a136 100644
--- a/Source/devtools/front_end/timeline/TimelineModel.js
+++ b/Source/devtools/front_end/timeline/TimelineModel.js
@@ -165,6 +165,8 @@ WebInspector.TimelineModel.Events = {
WebInspector.TimelineModel.MainThreadName = "main";
+WebInspector.TimelineModel.WorkerThreadName = "DedicatedWorker Thread";
+
/**
* @param {!Array.<!WebInspector.TracingModel.Event>} events
* @param {function(!WebInspector.TracingModel.Event)} onStartEvent
@@ -241,7 +243,7 @@ WebInspector.TimelineModel.VirtualThread.prototype = {
*/
isWorker: function()
{
- return this.name === "WebCore: Worker";
+ return this.name === WebInspector.TimelineModel.WorkerThreadName;
}
}
@@ -765,7 +767,7 @@ WebInspector.TimelineModel.prototype = {
var endTime = i + 1 < length ? metaEvents[i + 1].startTime : Infinity;
this._currentPage = metaEvent.args["data"] && metaEvent.args["data"]["page"];
for (var thread of process.sortedThreads()) {
- if (thread.name() === "WebCore: Worker" && !workerMetadataEvents.some(function(e) { return e.args["data"]["workerThreadId"] === thread.id(); }))
+ if (thread.name() === WebInspector.TimelineModel.WorkerThreadName && !workerMetadataEvents.some(function(e) { return e.args["data"]["workerThreadId"] === thread.id(); }))
continue;
this._processThreadEvents(startTime, endTime, metaEvent.thread, thread);
}
« no previous file with comments | « LayoutTests/inspector/tracing/worker-js-profile-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698