OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 importScript("../sdk/CPUProfileModel.js"); | 32 importScript("../sdk/CPUProfileModel.js"); |
33 importScript("CountersGraph.js"); | 33 importScript("CountersGraph.js"); |
34 importScript("Layers3DView.js"); | 34 importScript("Layers3DView.js"); |
35 importScript("MemoryCountersGraph.js"); | 35 importScript("MemoryCountersGraph.js"); |
36 importScript("TimelineModel.js"); | 36 importScript("TimelineModel.js"); |
37 importScript("TimelineModelImpl.js"); | 37 importScript("TimelineModelImpl.js"); |
38 importScript("TimelineJSProfile.js"); | 38 importScript("TimelineJSProfile.js"); |
39 importScript("TimelineOverviewPane.js"); | 39 importScript("TimelineOverviewPane.js"); |
40 importScript("TimelinePresentationModel.js"); | 40 importScript("TimelinePresentationModel.js"); |
| 41 importScript("TracingTimelineModel.js"); |
41 importScript("TimelineFrameModel.js"); | 42 importScript("TimelineFrameModel.js"); |
42 importScript("TimelineEventOverview.js"); | 43 importScript("TimelineEventOverview.js"); |
43 importScript("TimelineFrameOverview.js"); | 44 importScript("TimelineFrameOverview.js"); |
44 importScript("TimelineMemoryOverview.js"); | 45 importScript("TimelineMemoryOverview.js"); |
45 importScript("TimelinePowerGraph.js"); | 46 importScript("TimelinePowerGraph.js"); |
46 importScript("TimelinePowerOverview.js"); | 47 importScript("TimelinePowerOverview.js"); |
47 importScript("TimelineFlameChart.js"); | 48 importScript("TimelineFlameChart.js"); |
48 importScript("TimelineUIUtils.js"); | 49 importScript("TimelineUIUtils.js"); |
49 importScript("TimelineView.js"); | 50 importScript("TimelineView.js"); |
50 importScript("TimelineTracingView.js"); | 51 importScript("TimelineTracingView.js"); |
51 importScript("TimelineLayersView.js"); | 52 importScript("TimelineLayersView.js"); |
52 importScript("TracingModel.js"); | 53 importScript("TracingModel.js"); |
53 importScript("TracingTimelineModel.js"); | |
54 importScript("TracingTimelineUIUtils.js"); | 54 importScript("TracingTimelineUIUtils.js"); |
55 importScript("TransformController.js"); | 55 importScript("TransformController.js"); |
56 | 56 |
57 /** | 57 /** |
58 * @constructor | 58 * @constructor |
59 * @extends {WebInspector.Panel} | 59 * @extends {WebInspector.Panel} |
60 * @implements {WebInspector.TimelineModeViewDelegate} | 60 * @implements {WebInspector.TimelineModeViewDelegate} |
61 * @implements {WebInspector.Searchable} | 61 * @implements {WebInspector.Searchable} |
62 */ | 62 */ |
63 WebInspector.TimelinePanel = function() | 63 WebInspector.TimelinePanel = function() |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 this._model.stopRecording(); | 674 this._model.stopRecording(); |
675 if (this._tracingTimelineModel) | 675 if (this._tracingTimelineModel) |
676 this._tracingTimelineModel.stopRecording() | 676 this._tracingTimelineModel.stopRecording() |
677 | 677 |
678 for (var i = 0; i < this._overviewControls.length; ++i) | 678 for (var i = 0; i < this._overviewControls.length; ++i) |
679 this._overviewControls[i].timelineStopped(); | 679 this._overviewControls[i].timelineStopped(); |
680 }, | 680 }, |
681 | 681 |
682 _onTracingComplete: function() | 682 _onTracingComplete: function() |
683 { | 683 { |
| 684 if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled()) |
| 685 this._model.didStopRecordingTraceEvents(this._tracingTimelineModel.m
ainThreadEvents()); |
684 if (this._lazyFrameModel) { | 686 if (this._lazyFrameModel) { |
685 this._lazyFrameModel.reset(); | 687 this._lazyFrameModel.reset(); |
686 this._lazyFrameModel.addTraceEvents(this._tracingTimelineModel.inspe
ctedTargetEvents(), this._tracingModel.sessionId()); | 688 this._lazyFrameModel.addTraceEvents(this._tracingTimelineModel.inspe
ctedTargetEvents(), this._tracingModel.sessionId()); |
687 this._overviewPane.update(); | 689 this._overviewPane.update(); |
688 } | 690 } |
689 if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled()) | |
690 this._model.didStopRecordingTraceEvents(this._tracingTimelineModel.m
ainThreadEvents()); | |
691 this._refreshViews(); | 691 this._refreshViews(); |
692 }, | 692 }, |
693 | 693 |
694 _onProfilingStateChanged: function() | 694 _onProfilingStateChanged: function() |
695 { | 695 { |
696 this._updateToggleTimelineButton(this.toggleTimelineButton.toggled); | 696 this._updateToggleTimelineButton(this.toggleTimelineButton.toggled); |
697 }, | 697 }, |
698 | 698 |
699 /** | 699 /** |
700 * @param {boolean} toggled | 700 * @param {boolean} toggled |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1432 * @param {!WebInspector.TimelineModel.Record} record | 1432 * @param {!WebInspector.TimelineModel.Record} record |
1433 * @return {boolean} | 1433 * @return {boolean} |
1434 */ | 1434 */ |
1435 accept: function(record) | 1435 accept: function(record) |
1436 { | 1436 { |
1437 return !this._hiddenRecords[record.type()]; | 1437 return !this._hiddenRecords[record.type()]; |
1438 }, | 1438 }, |
1439 | 1439 |
1440 __proto__: WebInspector.TimelineModel.Filter.prototype | 1440 __proto__: WebInspector.TimelineModel.Filter.prototype |
1441 } | 1441 } |
OLD | NEW |