OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @param {!WebInspector.TracingModel} tracingModel | 7 * @param {!WebInspector.TracingModel} tracingModel |
8 * @param {!WebInspector.TimelineModel.Filter} recordFilter | 8 * @param {!WebInspector.TimelineModel.Filter} recordFilter |
9 * @extends {WebInspector.TimelineModel} | 9 * @extends {WebInspector.TimelineModel} |
10 */ | 10 */ |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 /** | 599 /** |
600 * @return {?WebInspector.TimelineModel.Record} | 600 * @return {?WebInspector.TimelineModel.Record} |
601 */ | 601 */ |
602 initiator: function() | 602 initiator: function() |
603 { | 603 { |
604 var initiator = this._event.initiator; | 604 var initiator = this._event.initiator; |
605 return initiator ? initiator._timelineRecord : null; | 605 return initiator ? initiator._timelineRecord : null; |
606 }, | 606 }, |
607 | 607 |
608 /** | 608 /** |
609 * @return {!WebInspector.Target} | 609 * @return {?WebInspector.Target} |
610 */ | 610 */ |
611 target: function() | 611 target: function() |
612 { | 612 { |
613 //FIXME: get it from this._event | 613 return this._event.thread.target(); |
614 return WebInspector.targetManager.targets()[0]; | |
615 }, | 614 }, |
616 | 615 |
617 /** | 616 /** |
618 * @return {number} | 617 * @return {number} |
619 */ | 618 */ |
620 selfTime: function() | 619 selfTime: function() |
621 { | 620 { |
622 return this._event.selfTime; | 621 return this._event.selfTime; |
623 }, | 622 }, |
624 | 623 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 }, | 754 }, |
756 | 755 |
757 /** | 756 /** |
758 * @return {!WebInspector.TimelineModel} | 757 * @return {!WebInspector.TimelineModel} |
759 */ | 758 */ |
760 timelineModel: function() | 759 timelineModel: function() |
761 { | 760 { |
762 return this._model; | 761 return this._model; |
763 } | 762 } |
764 } | 763 } |
OLD | NEW |