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