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

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

Issue 622843002: DevTools: Support timeline JS sampling for all threads. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline. Created 6 years, 1 month 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 /* 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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 800
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
yurys 2014/11/11 10:37:32 We should add a test for the cpu profiler integrat
alph 2014/11/11 10:59:26 Acknowledged.
811 return WebInspector.targetManager.targets()[0] || null; 811 return this.name() === "CrRendererMain" ? WebInspector.targetManager.tar gets()[0] || null : null;
yurys 2014/11/11 10:37:32 if (this.name() === "CrRendererMain") return W
alph 2014/11/11 10:59:26 Done.
812 }, 812 },
813 813
814 /** 814 /**
815 * @param {!WebInspector.TracingManager.EventPayload} payload 815 * @param {!WebInspector.TracingManager.EventPayload} payload
816 * @return {?WebInspector.TracingModel.Event} event 816 * @return {?WebInspector.TracingModel.Event} event
817 */ 817 */
818 _addEvent: function(payload) 818 _addEvent: function(payload)
819 { 819 {
820 var timestamp = payload.ts / 1000; 820 var timestamp = payload.ts / 1000;
821 if (payload.ph === WebInspector.TracingModel.Phase.End) { 821 if (payload.ph === WebInspector.TracingModel.Phase.End) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 /** 875 /**
876 * @return {!Array.<!WebInspector.TracingModel.Event>} 876 * @return {!Array.<!WebInspector.TracingModel.Event>}
877 */ 877 */
878 asyncEvents: function() 878 asyncEvents: function()
879 { 879 {
880 return this._asyncEvents; 880 return this._asyncEvents;
881 }, 881 },
882 882
883 __proto__: WebInspector.TracingModel.NamedObject.prototype 883 __proto__: WebInspector.TracingModel.NamedObject.prototype
884 } 884 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineJSProfile.js ('k') | Source/devtools/front_end/timeline/TracingTimelineModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698