| 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 * @param {!WebInspector.TracingModel} tracingModel | 7 * @param {!WebInspector.TracingModel} tracingModel |
| 8 * @param {!WebInspector.TimelineModel.Filter} recordFilter | 8 * @param {!WebInspector.TimelineModel.Filter} recordFilter |
| 9 * @extends {WebInspector.TimelineModel} | 9 * @extends {WebInspector.TimelineModel} |
| 10 */ | 10 */ |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 var process = event.thread.process(); | 224 var process = event.thread.process(); |
| 225 var startTime = event.startTime; | 225 var startTime = event.startTime; |
| 226 | 226 |
| 227 var endTime = Infinity; | 227 var endTime = Infinity; |
| 228 if (i + 1 < length) | 228 if (i + 1 < length) |
| 229 endTime = events[i + 1].startTime; | 229 endTime = events[i + 1].startTime; |
| 230 | 230 |
| 231 var threads = process.sortedThreads(); | 231 var threads = process.sortedThreads(); |
| 232 for (var j = 0; j < threads.length; j++) { | 232 for (var j = 0; j < threads.length; j++) { |
| 233 var thread = threads[j]; | 233 var thread = threads[j]; |
| 234 if (thread.name() === "WebCore: Worker" && !workerMetadataEvents
.some(function(e) { return e.thread === thread; })) | 234 if (thread.name() === "WebCore: Worker" && !workerMetadataEvents
.some(function(e) { return e.args["data"]["workerThreadId"] === thread.id(); })) |
| 235 continue; | 235 continue; |
| 236 this._processThreadEvents(startTime, endTime, event.thread, thre
ad); | 236 this._processThreadEvents(startTime, endTime, event.thread, thre
ad); |
| 237 } | 237 } |
| 238 } | 238 } |
| 239 this._resetProcessingState(); | 239 this._resetProcessingState(); |
| 240 | 240 |
| 241 this._inspectedTargetEvents.sort(WebInspector.TracingModel.Event.compare
StartTime); | 241 this._inspectedTargetEvents.sort(WebInspector.TracingModel.Event.compare
StartTime); |
| 242 | 242 |
| 243 if (this._cpuProfile) { | 243 if (this._cpuProfile) { |
| 244 var jsSamples = WebInspector.TimelineJSProfileProcessor.generateTrac
ingEventsFromCpuProfile(this, this._cpuProfile); | 244 var jsSamples = WebInspector.TimelineJSProfileProcessor.generateTrac
ingEventsFromCpuProfile(this, this._cpuProfile); |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1043 }, | 1043 }, |
| 1044 | 1044 |
| 1045 _didWriteNextChunk: function(stream) | 1045 _didWriteNextChunk: function(stream) |
| 1046 { | 1046 { |
| 1047 if (this._recordIndex === this._payloads.length) | 1047 if (this._recordIndex === this._payloads.length) |
| 1048 stream.close(); | 1048 stream.close(); |
| 1049 else | 1049 else |
| 1050 this._writeNextChunk(stream); | 1050 this._writeNextChunk(stream); |
| 1051 } | 1051 } |
| 1052 } | 1052 } |
| OLD | NEW |