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

Side by Side Diff: Source/devtools/front_end/timeline/TimelineModel.js

Issue 1312903005: DevTools: Make functions on timeline tree view point to the right source location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 (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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698