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 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 this._stack = []; | 801 this._stack = []; |
802 } | 802 } |
803 | 803 |
804 WebInspector.TracingModel.Thread.prototype = { | 804 WebInspector.TracingModel.Thread.prototype = { |
805 /** | 805 /** |
806 * @return {?WebInspector.Target} | 806 * @return {?WebInspector.Target} |
807 */ | 807 */ |
808 target: function() | 808 target: function() |
809 { | 809 { |
810 //FIXME: correctly specify target | 810 //FIXME: correctly specify target |
811 return WebInspector.targetManager.targets()[0] || null; | 811 if (this.name() === "CrRendererMain") |
| 812 return WebInspector.targetManager.targets()[0] || null; |
| 813 else |
| 814 return null; |
812 }, | 815 }, |
813 | 816 |
814 /** | 817 /** |
815 * @param {!WebInspector.TracingManager.EventPayload} payload | 818 * @param {!WebInspector.TracingManager.EventPayload} payload |
816 * @return {?WebInspector.TracingModel.Event} event | 819 * @return {?WebInspector.TracingModel.Event} event |
817 */ | 820 */ |
818 _addEvent: function(payload) | 821 _addEvent: function(payload) |
819 { | 822 { |
820 var timestamp = payload.ts / 1000; | 823 var timestamp = payload.ts / 1000; |
821 if (payload.ph === WebInspector.TracingModel.Phase.End) { | 824 if (payload.ph === WebInspector.TracingModel.Phase.End) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 /** | 878 /** |
876 * @return {!Array.<!WebInspector.TracingModel.Event>} | 879 * @return {!Array.<!WebInspector.TracingModel.Event>} |
877 */ | 880 */ |
878 asyncEvents: function() | 881 asyncEvents: function() |
879 { | 882 { |
880 return this._asyncEvents; | 883 return this._asyncEvents; |
881 }, | 884 }, |
882 | 885 |
883 __proto__: WebInspector.TracingModel.NamedObject.prototype | 886 __proto__: WebInspector.TracingModel.NamedObject.prototype |
884 } | 887 } |
OLD | NEW |