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 */ | 9 */ |
10 WebInspector.TracingModel = function() | 10 WebInspector.TracingModel = function() |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 } | 93 } |
94 | 94 |
95 /** | 95 /** |
96 * @constructor | 96 * @constructor |
97 * @param {!WebInspector.TracingAgent.Event} payload | 97 * @param {!WebInspector.TracingAgent.Event} payload |
98 * @param {number} level | 98 * @param {number} level |
99 */ | 99 */ |
100 WebInspector.TracingModel.Event = function(payload, level) | 100 WebInspector.TracingModel.Event = function(payload, level) |
101 { | 101 { |
102 this.name = payload.name; | 102 this.name = payload.name; |
| 103 this.category = payload.cat; |
103 this.startTime = payload.ts; | 104 this.startTime = payload.ts; |
104 this.args = payload.args; | 105 this.args = payload.args; |
105 this.phase = payload.phase; | 106 this.phase = payload.phase; |
106 this.level = level; | 107 this.level = level; |
107 } | 108 } |
108 | 109 |
109 WebInspector.TracingModel.Event.prototype = { | 110 WebInspector.TracingModel.Event.prototype = { |
110 /** | 111 /** |
111 * @param {number} duration | 112 * @param {number} duration |
112 */ | 113 */ |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 * @return {number} | 280 * @return {number} |
280 */ | 281 */ |
281 maxStackDepth: function() | 282 maxStackDepth: function() |
282 { | 283 { |
283 // Reserve one for non-container events. | 284 // Reserve one for non-container events. |
284 return this._maxStackDepth + 1; | 285 return this._maxStackDepth + 1; |
285 }, | 286 }, |
286 | 287 |
287 __proto__: WebInspector.TracingModel.NamedObject.prototype | 288 __proto__: WebInspector.TracingModel.NamedObject.prototype |
288 } | 289 } |
OLD | NEW |