| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 * A SourceEntry gathers all log entries with the same source. | 6 * A SourceEntry gathers all log entries with the same source. |
| 7 * | 7 * |
| 8 * @constructor | 8 * @constructor |
| 9 */ | 9 */ |
| 10 function SourceEntry(logEntry, maxPreviousSourceId) { | 10 function SourceEntry(logEntry, maxPreviousSourceId) { |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 SourceEntry.prototype.getDuration = function() { | 190 SourceEntry.prototype.getDuration = function() { |
| 191 var startTicks = this.entries_[0].time; | 191 var startTicks = this.entries_[0].time; |
| 192 var startTime = convertTimeTicksToDate(startTicks).getTime(); | 192 var startTime = convertTimeTicksToDate(startTicks).getTime(); |
| 193 var endTime = this.getEndTime(); | 193 var endTime = this.getEndTime(); |
| 194 return endTime - startTime; | 194 return endTime - startTime; |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 SourceEntry.prototype.printAsText = function() { | 197 SourceEntry.prototype.printAsText = function() { |
| 198 return PrintSourceEntriesAsText(this.entries_); | 198 return PrintSourceEntriesAsText(this.entries_); |
| 199 }; | 199 }; |
| OLD | NEW |