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() |