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

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

Issue 470553002: DevTools: move TracingModel.js into the sdk module. (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
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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 WebInspector.TracingModel.Event = function(payload, level, thread) 318 WebInspector.TracingModel.Event = function(payload, level, thread)
319 { 319 {
320 this.name = payload.name; 320 this.name = payload.name;
321 this.category = payload.cat; 321 this.category = payload.cat;
322 this.startTime = payload.ts / 1000; 322 this.startTime = payload.ts / 1000;
323 if (payload.args) { 323 if (payload.args) {
324 // Create a new object to avoid modifying original payload which may be saved to file. 324 // Create a new object to avoid modifying original payload which may be saved to file.
325 this.args = {}; 325 this.args = {};
326 for (var name in payload.args) 326 for (var name in payload.args)
327 this.args[name] = payload.args[name]; 327 this.args[name] = payload.args[name];
328 this.dataArg = payload.args["data"];
yurys 2014/08/13 10:00:32 Please revert this.
pfeldman 2014/08/13 11:26:12 Done.
328 } 329 }
329 this.phase = payload.ph; 330 this.phase = payload.ph;
330 this.level = level; 331 this.level = level;
331 332
332 if (typeof payload.dur === "number") 333 if (typeof payload.dur === "number")
333 this._setEndTime((payload.ts + payload.dur) / 1000); 334 this._setEndTime((payload.ts + payload.dur) / 1000);
334 335
335 if (payload.id) 336 if (payload.id)
336 this.id = payload.id; 337 this.id = payload.id;
337 338
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 started: function(consoleTimeline, sessionId) 664 started: function(consoleTimeline, sessionId)
664 { 665 {
665 this._tracingModel._tracingStarted(sessionId); 666 this._tracingModel._tracingStarted(sessionId);
666 }, 667 },
667 668
668 stopped: function() 669 stopped: function()
669 { 670 {
670 this._tracingModel._onStop(); 671 this._tracingModel._onStop();
671 } 672 }
672 } 673 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/inspector.html ('k') | Source/devtools/front_end/timeline/TimelineFlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698