| 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 | 492 |
| 493 /** | 493 /** |
| 494 * @return {!Array.<!WebInspector.TimelineModel.Record>} | 494 * @return {!Array.<!WebInspector.TimelineModel.Record>} |
| 495 */ | 495 */ |
| 496 records: function() | 496 records: function() |
| 497 { | 497 { |
| 498 return this._records; | 498 return this._records; |
| 499 }, | 499 }, |
| 500 | 500 |
| 501 /** | 501 /** |
| 502 * @return {?WebInspector.Target} |
| 503 */ |
| 504 target: function() |
| 505 { |
| 506 // FIXME: Consider returning null for loaded traces. |
| 507 return this._tracingManager.target(); |
| 508 }, |
| 509 |
| 510 /** |
| 502 * @param {!Array.<!WebInspector.TracingManager.EventPayload>} events | 511 * @param {!Array.<!WebInspector.TracingManager.EventPayload>} events |
| 503 */ | 512 */ |
| 504 setEventsForTest: function(events) | 513 setEventsForTest: function(events) |
| 505 { | 514 { |
| 506 this._startCollectingTraceEvents(false); | 515 this._startCollectingTraceEvents(false); |
| 507 this._tracingModel.addEvents(events); | 516 this._tracingModel.addEvents(events); |
| 508 this._onTracingComplete(); | 517 this._onTracingComplete(); |
| 509 }, | 518 }, |
| 510 | 519 |
| 511 _startCpuProfilingOnAllTargets: function() | 520 _startCpuProfilingOnAllTargets: function() |
| (...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1687 _initializePerFrameState: function() | 1696 _initializePerFrameState: function() |
| 1688 { | 1697 { |
| 1689 /** @type {!Array.<!WebInspector.InvalidationTrackingEvent>} */ | 1698 /** @type {!Array.<!WebInspector.InvalidationTrackingEvent>} */ |
| 1690 this._invalidationEvents = []; | 1699 this._invalidationEvents = []; |
| 1691 this._lastStyleRecalcEventIndex = 0; | 1700 this._lastStyleRecalcEventIndex = 0; |
| 1692 this._lastLayoutEventIndex = 0; | 1701 this._lastLayoutEventIndex = 0; |
| 1693 this._lastPaintWithLayer = undefined; | 1702 this._lastPaintWithLayer = undefined; |
| 1694 this._didPaint = false; | 1703 this._didPaint = false; |
| 1695 } | 1704 } |
| 1696 } | 1705 } |
| OLD | NEW |