| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 panelStatusBarElement.appendChild(this.clearButton.element); | 312 panelStatusBarElement.appendChild(this.clearButton.element); |
| 313 | 313 |
| 314 this._filterBar = this._createFilterBar(); | 314 this._filterBar = this._createFilterBar(); |
| 315 panelStatusBarElement.appendChild(this._filterBar.filterButton().element
); | 315 panelStatusBarElement.appendChild(this._filterBar.filterButton().element
); |
| 316 | 316 |
| 317 this.garbageCollectButton = new WebInspector.StatusBarButton(WebInspecto
r.UIString("Collect Garbage"), "garbage-collect-status-bar-item"); | 317 this.garbageCollectButton = new WebInspector.StatusBarButton(WebInspecto
r.UIString("Collect Garbage"), "garbage-collect-status-bar-item"); |
| 318 this.garbageCollectButton.addEventListener("click", this._garbageCollect
ButtonClicked, this); | 318 this.garbageCollectButton.addEventListener("click", this._garbageCollect
ButtonClicked, this); |
| 319 this._statusBarButtons.push(this.garbageCollectButton); | 319 this._statusBarButtons.push(this.garbageCollectButton); |
| 320 panelStatusBarElement.appendChild(this.garbageCollectButton.element); | 320 panelStatusBarElement.appendChild(this.garbageCollectButton.element); |
| 321 | 321 |
| 322 panelStatusBarElement.appendChild(WebInspector.SettingsUI.createSettingC
heckbox(WebInspector.UIString("Capture stacks"), WebInspector.settings.timelineC
aptureStacks, true, undefined, | 322 if (WebInspector.experimentsSettings.timelineNoLiveUpdate.isEnabled()) { |
| 323 WebInspector.UIString("Capture Ja
vaScript stack on every timeline event"))); | 323 panelStatusBarElement.appendChild(WebInspector.SettingsUI.createSett
ingCheckbox(WebInspector.UIString("Live update"), |
| 324 WebInspector.settings.timelineLive
Update, true, undefined, |
| 325 WebInspector.UIString("Show timeli
ne records while recording"))); |
| 326 } |
| 327 |
| 328 panelStatusBarElement.appendChild(WebInspector.SettingsUI.createSettingC
heckbox(WebInspector.UIString("Capture stacks"), |
| 329 WebInspector.settings.timelineCaptureS
tacks, true, undefined, |
| 330 WebInspector.UIString("Capture JavaScr
ipt stack on every timeline event"))); |
| 324 | 331 |
| 325 this._miscStatusBarItems = panelStatusBarElement.createChild("div", "sta
tus-bar-item"); | 332 this._miscStatusBarItems = panelStatusBarElement.createChild("div", "sta
tus-bar-item"); |
| 326 | 333 |
| 327 this._filtersContainer = this.element.createChild("div", "timeline-filte
rs-header hidden"); | 334 this._filtersContainer = this.element.createChild("div", "timeline-filte
rs-header hidden"); |
| 328 this._filtersContainer.appendChild(this._filterBar.filtersElement()); | 335 this._filtersContainer.appendChild(this._filterBar.filtersElement()); |
| 329 this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersTo
ggled, this._onFiltersToggled, this); | 336 this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersTo
ggled, this._onFiltersToggled, this); |
| 330 }, | 337 }, |
| 331 | 338 |
| 332 /** | 339 /** |
| 333 * @return {!WebInspector.FilterBar} | 340 * @return {!WebInspector.FilterBar} |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 * @param {!WebInspector.TimelineModel.Record} record | 1109 * @param {!WebInspector.TimelineModel.Record} record |
| 1103 * @return {boolean} | 1110 * @return {boolean} |
| 1104 */ | 1111 */ |
| 1105 accept: function(record) | 1112 accept: function(record) |
| 1106 { | 1113 { |
| 1107 return !this._hiddenRecords[record.type]; | 1114 return !this._hiddenRecords[record.type]; |
| 1108 }, | 1115 }, |
| 1109 | 1116 |
| 1110 __proto__: WebInspector.TimelineModel.Filter.prototype | 1117 __proto__: WebInspector.TimelineModel.Filter.prototype |
| 1111 } | 1118 } |
| OLD | NEW |