Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1477 * @return {boolean} | 1477 * @return {boolean} |
| 1478 */ | 1478 */ |
| 1479 function filter(e) | 1479 function filter(e) |
| 1480 { | 1480 { |
| 1481 if (!e.endTime && e.phase !== WebInspector.TracingModel.Phase.Instant) | 1481 if (!e.endTime && e.phase !== WebInspector.TracingModel.Phase.Instant) |
| 1482 return false; | 1482 return false; |
| 1483 if (e.endTime <= startTime || e.startTime >= endTime) | 1483 if (e.endTime <= startTime || e.startTime >= endTime) |
| 1484 return false; | 1484 return false; |
| 1485 if (WebInspector.TracingModel.isAsyncPhase(e.phase)) | 1485 if (WebInspector.TracingModel.isAsyncPhase(e.phase)) |
| 1486 return false; | 1486 return false; |
| 1487 for (var filter of filters) { | 1487 for (var i = 0, l = filters.length; i < l; ++i) { |
|
yurys
2015/08/29 00:44:18
did it prove to be slow?
alph
2015/09/01 21:38:55
Yes, for-of still disables optimization and the fi
| |
| 1488 if (!filter.accept(e)) | 1488 if (!filters[i].accept(e)) |
| 1489 return false; | 1489 return false; |
| 1490 } | 1490 } |
| 1491 return true; | 1491 return true; |
| 1492 } | 1492 } |
| 1493 | 1493 |
| 1494 /** | 1494 /** |
| 1495 * @param {!WebInspector.TracingModel.Event} e | 1495 * @param {!WebInspector.TracingModel.Event} e |
| 1496 */ | 1496 */ |
| 1497 function onStartEvent(e) | 1497 function onStartEvent(e) |
| 1498 { | 1498 { |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2363 /** @type {!Object.<string, !Array.<!WebInspector.InvalidationTrackingEv ent>>} */ | 2363 /** @type {!Object.<string, !Array.<!WebInspector.InvalidationTrackingEv ent>>} */ |
| 2364 this._invalidations = {}; | 2364 this._invalidations = {}; |
| 2365 /** @type {!Object.<number, !Array.<!WebInspector.InvalidationTrackingEv ent>>} */ | 2365 /** @type {!Object.<number, !Array.<!WebInspector.InvalidationTrackingEv ent>>} */ |
| 2366 this._invalidationsByNodeId = {}; | 2366 this._invalidationsByNodeId = {}; |
| 2367 | 2367 |
| 2368 this._lastRecalcStyle = undefined; | 2368 this._lastRecalcStyle = undefined; |
| 2369 this._lastPaintWithLayer = undefined; | 2369 this._lastPaintWithLayer = undefined; |
| 2370 this._didPaint = false; | 2370 this._didPaint = false; |
| 2371 } | 2371 } |
| 2372 } | 2372 } |
| OLD | NEW |