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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js

Issue 2486853002: Timeline: remove TimelineModel inferred properties from TracingModel.Event (Closed)
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 WebInspector.TimelineProfileTree = {}; 4 WebInspector.TimelineProfileTree = {};
5 5
6 /** 6 /**
7 * @unrestricted 7 * @unrestricted
8 */ 8 */
9 WebInspector.TimelineProfileTree.Node = class { 9 WebInspector.TimelineProfileTree.Node = class {
10 constructor() { 10 constructor() {
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 return null; 191 return null;
192 }; 192 };
193 193
194 /** 194 /**
195 * @param {!WebInspector.TracingModel.Event} event 195 * @param {!WebInspector.TracingModel.Event} event
196 * @return {?Protocol.Runtime.CallFrame} 196 * @return {?Protocol.Runtime.CallFrame}
197 */ 197 */
198 WebInspector.TimelineProfileTree.eventStackFrame = function(event) { 198 WebInspector.TimelineProfileTree.eventStackFrame = function(event) {
199 if (event.name === WebInspector.TimelineModel.RecordType.JSFrame) 199 if (event.name === WebInspector.TimelineModel.RecordType.JSFrame)
200 return /** @type {?Protocol.Runtime.CallFrame} */ (event.args['data'] || nul l); 200 return /** @type {?Protocol.Runtime.CallFrame} */ (event.args['data'] || nul l);
201 var topFrame = event.stackTrace && event.stackTrace[0]; 201 return WebInspector.TimelineData.forEvent(event).topFrame();
202 if (topFrame)
203 return /** @type {!Protocol.Runtime.CallFrame} */ (topFrame);
204 var initiator = event.initiator;
205 return /** @type {?Protocol.Runtime.CallFrame} */ (initiator && initiator.stac kTrace && initiator.stackTrace[0] || null);
206 }; 202 };
207 203
208 /** 204 /**
209 * @unrestricted 205 * @unrestricted
210 */ 206 */
211 WebInspector.TimelineAggregator = class { 207 WebInspector.TimelineAggregator = class {
212 /** 208 /**
213 * @param {function(!WebInspector.TracingModel.Event):string} titleMapper 209 * @param {function(!WebInspector.TracingModel.Event):string} titleMapper
214 * @param {function(!WebInspector.TracingModel.Event):string} categoryMapper 210 * @param {function(!WebInspector.TracingModel.Event):string} categoryMapper
215 */ 211 */
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 EventName: 'EventName', 355 EventName: 'EventName',
360 Category: 'Category', 356 Category: 'Category',
361 Domain: 'Domain', 357 Domain: 'Domain',
362 Subdomain: 'Subdomain', 358 Subdomain: 'Subdomain',
363 URL: 'URL' 359 URL: 'URL'
364 }; 360 };
365 361
366 362
367 WebInspector.TimelineAggregator._extensionInternalPrefix = 'extensions::'; 363 WebInspector.TimelineAggregator._extensionInternalPrefix = 'extensions::';
368 WebInspector.TimelineAggregator._groupNodeFlag = Symbol('groupNode'); 364 WebInspector.TimelineAggregator._groupNodeFlag = Symbol('groupNode');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698