OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |