| OLD | NEW |
| 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.SDKObject} | 9 * @extends {WebInspector.SDKObject} |
| 10 */ | 10 */ |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 } | 293 } |
| 294 | 294 |
| 295 if (this._sessionIdFound) { | 295 if (this._sessionIdFound) { |
| 296 this._tracingModel._tracingStarted(sessionId); | 296 this._tracingModel._tracingStarted(sessionId); |
| 297 this._tracingModel._eventsCollected(this._events); | 297 this._tracingModel._eventsCollected(this._events); |
| 298 } | 298 } |
| 299 }, | 299 }, |
| 300 | 300 |
| 301 finish: function() | 301 finish: function() |
| 302 { | 302 { |
| 303 this._tracingModel._tracingComplete(); | 303 if (this._sessionIdFound) |
| 304 this._tracingModel._tracingComplete(); |
| 305 else |
| 306 WebInspector.console.error(WebInspector.UIString("Trace event %s not
found while loading tracing model.", WebInspector.TracingModel.DevToolsMetadata
Event.TracingStartedInPage)); |
| 304 } | 307 } |
| 305 } | 308 } |
| 306 | 309 |
| 307 | 310 |
| 308 /** | 311 /** |
| 309 * @constructor | 312 * @constructor |
| 310 * @param {!WebInspector.TracingModel.EventPayload} payload | 313 * @param {!WebInspector.TracingModel.EventPayload} payload |
| 311 * @param {number} level | 314 * @param {number} level |
| 312 * @param {?WebInspector.TracingModel.Thread} thread | 315 * @param {?WebInspector.TracingModel.Thread} thread |
| 313 */ | 316 */ |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 started: function(consoleTimeline, sessionId) | 662 started: function(consoleTimeline, sessionId) |
| 660 { | 663 { |
| 661 this._tracingModel._tracingStarted(sessionId); | 664 this._tracingModel._tracingStarted(sessionId); |
| 662 }, | 665 }, |
| 663 | 666 |
| 664 stopped: function() | 667 stopped: function() |
| 665 { | 668 { |
| 666 this._tracingModel._onStop(); | 669 this._tracingModel._onStop(); |
| 667 } | 670 } |
| 668 } | 671 } |
| OLD | NEW |