OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /** | 7 /** |
8 * @constructor | 8 * @constructor |
9 */ | 9 */ |
10 WebInspector.TracingModel = function() | 10 WebInspector.TracingModel = function() |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 | 545 |
546 /** | 546 /** |
547 * @constructor | 547 * @constructor |
548 * @extends {WebInspector.TracingModel.NamedObject} | 548 * @extends {WebInspector.TracingModel.NamedObject} |
549 * @param {number} id | 549 * @param {number} id |
550 */ | 550 */ |
551 WebInspector.TracingModel.Process = function(id) | 551 WebInspector.TracingModel.Process = function(id) |
552 { | 552 { |
553 WebInspector.TracingModel.NamedObject.call(this); | 553 WebInspector.TracingModel.NamedObject.call(this); |
554 this._setName("Process " + id); | 554 this._setName("Process " + id); |
| 555 this._id = id; |
555 this._threads = {}; | 556 this._threads = {}; |
556 this._objects = {}; | 557 this._objects = {}; |
557 /** @type {!Array.<!WebInspector.TracingManager.EventPayload>} */ | 558 /** @type {!Array.<!WebInspector.TracingManager.EventPayload>} */ |
558 this._asyncEvents = []; | 559 this._asyncEvents = []; |
559 /** @type {!Object.<string, ?Array.<!WebInspector.TracingModel.Event>>} */ | 560 /** @type {!Object.<string, ?Array.<!WebInspector.TracingModel.Event>>} */ |
560 this._openAsyncEvents = []; | 561 this._openAsyncEvents = []; |
561 } | 562 } |
562 | 563 |
563 WebInspector.TracingModel.Process.prototype = { | 564 WebInspector.TracingModel.Process.prototype = { |
564 /** | 565 /** |
| 566 * @return {number} |
| 567 */ |
| 568 id: function() |
| 569 { |
| 570 return this._id; |
| 571 }, |
| 572 |
| 573 /** |
565 * @param {number} id | 574 * @param {number} id |
566 * @return {!WebInspector.TracingModel.Thread} | 575 * @return {!WebInspector.TracingModel.Thread} |
567 */ | 576 */ |
568 threadById: function(id) | 577 threadById: function(id) |
569 { | 578 { |
570 var thread = this._threads[id]; | 579 var thread = this._threads[id]; |
571 if (!thread) { | 580 if (!thread) { |
572 thread = new WebInspector.TracingModel.Thread(this, id); | 581 thread = new WebInspector.TracingModel.Thread(this, id); |
573 this._threads[id] = thread; | 582 this._threads[id] = thread; |
574 } | 583 } |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 /** | 796 /** |
788 * @return {!Array.<!WebInspector.TracingModel.Event>} | 797 * @return {!Array.<!WebInspector.TracingModel.Event>} |
789 */ | 798 */ |
790 asyncEvents: function() | 799 asyncEvents: function() |
791 { | 800 { |
792 return this._asyncEvents; | 801 return this._asyncEvents; |
793 }, | 802 }, |
794 | 803 |
795 __proto__: WebInspector.TracingModel.NamedObject.prototype | 804 __proto__: WebInspector.TracingModel.NamedObject.prototype |
796 } | 805 } |
OLD | NEW |