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

Unified Diff: Source/devtools/front_end/sdk/TracingModel.js

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/devtools/front_end/sdk/TracingModel.js
diff --git a/Source/devtools/front_end/sdk/TracingModel.js b/Source/devtools/front_end/sdk/TracingModel.js
index f05b1aa643a242467eb29d5f246f14e38128965b..956571b778088c50c17fa367c11a53fe186baa25 100644
--- a/Source/devtools/front_end/sdk/TracingModel.js
+++ b/Source/devtools/front_end/sdk/TracingModel.js
@@ -295,7 +295,11 @@ WebInspector.TracingModel.prototype = {
var mismatchingIds = {};
function checkSessionId(event)
{
- var id = event.args["sessionId"];
+ var args = event.args;
+ // FIXME: put sessionId into args["data"] for TracingStartedInPage event.
+ if (args["data"])
+ args = args["data"];
+ var id = args["sessionId"];
if (id === sessionId)
return true;
mismatchingIds[id] = true;
@@ -697,6 +701,7 @@ WebInspector.TracingModel.Thread = function(process, id)
this._setName("Thread " + id);
this._events = [];
this._asyncEvents = [];
+ this._id = id;
this._stack = [];
}
@@ -748,6 +753,14 @@ WebInspector.TracingModel.Thread.prototype = {
},
/**
+ * @return {number}
+ */
+ id: function()
+ {
+ return this._id;
+ },
+
+ /**
* @return {!WebInspector.TracingModel.Process}
*/
process: function()

Powered by Google App Engine
This is Rietveld 408576698