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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 Events: "Events", | 136 Events: "Events", |
137 Frames: "Frames" | 137 Frames: "Frames" |
138 }; | 138 }; |
139 | 139 |
140 // Define row and header height, should be in sync with styles for timeline grap
hs. | 140 // Define row and header height, should be in sync with styles for timeline grap
hs. |
141 WebInspector.TimelinePanel.rowHeight = 18; | 141 WebInspector.TimelinePanel.rowHeight = 18; |
142 WebInspector.TimelinePanel.headerHeight = 20; | 142 WebInspector.TimelinePanel.headerHeight = 20; |
143 | 143 |
144 WebInspector.TimelinePanel.durationFilterPresetsMs = [0, 1, 15]; | 144 WebInspector.TimelinePanel.durationFilterPresetsMs = [0, 1, 15]; |
145 | 145 |
| 146 WebInspector.TimelinePanel.defaultTracingCategoryFilter = "*,disabled-by-default
-cc.debug,disabled-by-default-devtools.timeline"; |
| 147 |
146 WebInspector.TimelinePanel.prototype = { | 148 WebInspector.TimelinePanel.prototype = { |
147 /** | 149 /** |
148 * @return {?WebInspector.SearchableView} | 150 * @return {?WebInspector.SearchableView} |
149 */ | 151 */ |
150 searchableView: function() | 152 searchableView: function() |
151 { | 153 { |
152 return this._searchableView; | 154 return this._searchableView; |
153 }, | 155 }, |
154 | 156 |
155 wasShown: function() | 157 wasShown: function() |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 }, | 621 }, |
620 | 622 |
621 /** | 623 /** |
622 * @param {boolean} userInitiated | 624 * @param {boolean} userInitiated |
623 */ | 625 */ |
624 _startRecording: function(userInitiated) | 626 _startRecording: function(userInitiated) |
625 { | 627 { |
626 this._userInitiatedRecording = userInitiated; | 628 this._userInitiatedRecording = userInitiated; |
627 this._model.startRecording(this._captureStacksSetting.get(), this._captu
reMemorySetting.get()); | 629 this._model.startRecording(this._captureStacksSetting.get(), this._captu
reMemorySetting.get()); |
628 if (WebInspector.experimentsSettings.timelineTracingMode.isEnabled()) | 630 if (WebInspector.experimentsSettings.timelineTracingMode.isEnabled()) |
629 this._tracingModel().start(WebInspector.TimelineManager.defaultTraci
ngCategories, ""); | 631 this._tracingModel().start(WebInspector.TimelinePanel.defaultTracing
CategoryFilter, ""); |
630 for (var i = 0; i < this._overviewControls.length; ++i) | 632 for (var i = 0; i < this._overviewControls.length; ++i) |
631 this._overviewControls[i].timelineStarted(); | 633 this._overviewControls[i].timelineStarted(); |
632 | 634 |
633 if (userInitiated) | 635 if (userInitiated) |
634 WebInspector.userMetrics.TimelineStarted.record(); | 636 WebInspector.userMetrics.TimelineStarted.record(); |
635 }, | 637 }, |
636 | 638 |
637 _stopRecording: function() | 639 _stopRecording: function() |
638 { | 640 { |
639 this._userInitiatedRecording = false; | 641 this._userInitiatedRecording = false; |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 * @param {!WebInspector.TimelineModel.Record} record | 1257 * @param {!WebInspector.TimelineModel.Record} record |
1256 * @return {boolean} | 1258 * @return {boolean} |
1257 */ | 1259 */ |
1258 accept: function(record) | 1260 accept: function(record) |
1259 { | 1261 { |
1260 return !this._hiddenRecords[record.type]; | 1262 return !this._hiddenRecords[record.type]; |
1261 }, | 1263 }, |
1262 | 1264 |
1263 __proto__: WebInspector.TimelineModel.Filter.prototype | 1265 __proto__: WebInspector.TimelineModel.Filter.prototype |
1264 } | 1266 } |
OLD | NEW |