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

Side by Side Diff: Source/devtools/front_end/timeline/TimelineModelImpl.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 * @extends {WebInspector.TimelineModel} 7 * @extends {WebInspector.TimelineModel}
8 * @param {!WebInspector.TimelineManager} timelineManager 8 * @param {!WebInspector.TimelineManager} timelineManager
9 */ 9 */
10 WebInspector.TimelineModelImpl = function(timelineManager) 10 WebInspector.TimelineModelImpl = function(timelineManager)
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 385
386 /** 386 /**
387 * @return {?WebInspector.TimelineModel.Record} 387 * @return {?WebInspector.TimelineModel.Record}
388 */ 388 */
389 initiator: function() 389 initiator: function()
390 { 390 {
391 return this._initiator; 391 return this._initiator;
392 }, 392 },
393 393
394 /** 394 /**
395 * @return {!WebInspector.Target} 395 * @return {?WebInspector.Target}
396 */ 396 */
397 target: function() 397 target: function()
398 { 398 {
399 return this._model._target; 399 return this._model._target;
400 }, 400 },
401 401
402 /** 402 /**
403 * @return {number} 403 * @return {number}
404 */ 404 */
405 selfTime: function() 405 selfTime: function()
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 break; 702 break;
703 length += itemLength; 703 length += itemLength;
704 data.push(item); 704 data.push(item);
705 ++this._recordIndex; 705 ++this._recordIndex;
706 } 706 }
707 if (this._recordIndex === this._payloads.length) 707 if (this._recordIndex === this._payloads.length)
708 data.push(data.pop() + "]"); 708 data.push(data.pop() + "]");
709 stream.write(data.join(separator), this._writeNextChunk.bind(this)); 709 stream.write(data.join(separator), this._writeNextChunk.bind(this));
710 } 710 }
711 } 711 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineModel.js ('k') | Source/devtools/front_end/timeline/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698