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

Side by Side Diff: Source/devtools/front_end/timeline/TracingTimelineModel.js

Issue 400143002: DevTools: Make target on TimelineRecord nullable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineView.js ('k') | Source/devtools/front_end/timeline/TracingTimelineUIUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698