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

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

Issue 620123002: DevTools: Support JS frames save/load for tracing timeline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressing comment. Created 6 years, 2 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/timeline/TracingModel.js
diff --git a/Source/devtools/front_end/timeline/TracingModel.js b/Source/devtools/front_end/timeline/TracingModel.js
index 2e8d98a88071a6d62e931b410b994a43efae4e5d..5af2e87d31ddeaebb0802c1fc8f1d14472b73332 100644
--- a/Source/devtools/front_end/timeline/TracingModel.js
+++ b/Source/devtools/front_end/timeline/TracingModel.js
@@ -552,6 +552,7 @@ WebInspector.TracingModel.Process = function(id)
{
WebInspector.TracingModel.NamedObject.call(this);
this._setName("Process " + id);
+ this._id = id;
this._threads = {};
this._objects = {};
/** @type {!Array.<!WebInspector.TracingManager.EventPayload>} */
@@ -562,6 +563,14 @@ WebInspector.TracingModel.Process = function(id)
WebInspector.TracingModel.Process.prototype = {
/**
+ * @return {number}
+ */
+ id: function()
+ {
+ return this._id;
+ },
+
+ /**
* @param {number} id
* @return {!WebInspector.TracingModel.Thread}
*/

Powered by Google App Engine
This is Rietveld 408576698