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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
325 * @param {!WebInspector.TracingModel.Event} a | 325 * @param {!WebInspector.TracingModel.Event} a |
326 * @param {!WebInspector.TracingModel.Event} b | 326 * @param {!WebInspector.TracingModel.Event} b |
327 * @return {number} | 327 * @return {number} |
328 */ | 328 */ |
329 WebInspector.TracingModel.Event.compareStartTime = function (a, b) | 329 WebInspector.TracingModel.Event.compareStartTime = function (a, b) |
330 { | 330 { |
331 return a.startTime - b.startTime; | 331 return a.startTime - b.startTime; |
332 } | 332 } |
333 | 333 |
334 /** | 334 /** |
335 * @param {!WebInspector.TracingModel.Event} a | |
336 * @param {!WebInspector.TracingModel.Event} b | |
337 * @return {number} | |
338 */ | |
339 WebInspector.TracingModel.Event.orderedCompareStartTime = function (a, b) | |
340 { | |
341 return a.startTime - b.startTime || -1; | |
yurys
2014/07/17 14:32:40
Can you add a comment on why we use -1?
alph
2014/07/17 15:48:43
Nuked.
| |
342 } | |
343 | |
344 /** | |
335 * @constructor | 345 * @constructor |
336 */ | 346 */ |
337 WebInspector.TracingModel.NamedObject = function() | 347 WebInspector.TracingModel.NamedObject = function() |
338 { | 348 { |
339 } | 349 } |
340 | 350 |
341 WebInspector.TracingModel.NamedObject.prototype = | 351 WebInspector.TracingModel.NamedObject.prototype = |
342 { | 352 { |
343 /** | 353 /** |
344 * @param {string} name | 354 * @param {string} name |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
551 dataCollected: function(data) | 561 dataCollected: function(data) |
552 { | 562 { |
553 this._tracingModel._eventsCollected(data); | 563 this._tracingModel._eventsCollected(data); |
554 }, | 564 }, |
555 | 565 |
556 tracingComplete: function() | 566 tracingComplete: function() |
557 { | 567 { |
558 this._tracingModel._tracingComplete(); | 568 this._tracingModel._tracingComplete(); |
559 } | 569 } |
560 } | 570 } |
OLD | NEW |