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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 Loading... | |
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 } |
OLD | NEW |