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

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

Issue 369853002: DevTools: Rename TargetAwareObject into SDKObject (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
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineModel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * @extends {WebInspector.TargetAwareObject} 9 * @extends {WebInspector.SDKObject}
10 */ 10 */
11 WebInspector.TracingModel = function(target) 11 WebInspector.TracingModel = function(target)
12 { 12 {
13 WebInspector.TargetAwareObject.call(this, target); 13 WebInspector.SDKObject.call(this, target);
14 this.reset(); 14 this.reset();
15 this._active = false; 15 this._active = false;
16 InspectorBackend.registerTracingDispatcher(new WebInspector.TracingDispatche r(this)); 16 InspectorBackend.registerTracingDispatcher(new WebInspector.TracingDispatche r(this));
17 } 17 }
18 18
19 WebInspector.TracingModel.Events = { 19 WebInspector.TracingModel.Events = {
20 "BufferUsage": "BufferUsage" 20 "BufferUsage": "BufferUsage"
21 } 21 }
22 22
23 /** @typedef {!{ 23 /** @typedef {!{
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 }, 237 },
238 238
239 /** 239 /**
240 * @return {!Array.<!WebInspector.TracingModel.Process>} 240 * @return {!Array.<!WebInspector.TracingModel.Process>}
241 */ 241 */
242 sortedProcesses: function() 242 sortedProcesses: function()
243 { 243 {
244 return WebInspector.TracingModel.NamedObject._sort(Object.values(this._p rocessById)); 244 return WebInspector.TracingModel.NamedObject._sort(Object.values(this._p rocessById));
245 }, 245 },
246 246
247 __proto__: WebInspector.TargetAwareObject.prototype 247 __proto__: WebInspector.SDKObject.prototype
248 } 248 }
249 249
250 /** 250 /**
251 * @constructor 251 * @constructor
252 * @param {!WebInspector.TracingModel.EventPayload} payload 252 * @param {!WebInspector.TracingModel.EventPayload} payload
253 * @param {number} level 253 * @param {number} level
254 * @param {?WebInspector.TracingModel.Thread} thread 254 * @param {?WebInspector.TracingModel.Thread} thread
255 */ 255 */
256 WebInspector.TracingModel.Event = function(payload, level, thread) 256 WebInspector.TracingModel.Event = function(payload, level, thread)
257 { 257 {
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 dataCollected: function(data) 551 dataCollected: function(data)
552 { 552 {
553 this._tracingModel._eventsCollected(data); 553 this._tracingModel._eventsCollected(data);
554 }, 554 },
555 555
556 tracingComplete: function() 556 tracingComplete: function()
557 { 557 {
558 this._tracingModel._tracingComplete(); 558 this._tracingModel._tracingComplete();
559 } 559 }
560 } 560 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698