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

Side by Side Diff: Source/devtools/front_end/timeline/TracingModel.js

Issue 454893003: Show error message on attempt to load old Timeline data into tracing based Timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TracingTimelineModel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TracingTimelineModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698