| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 clearButton.addEventListener("click", this._onClearButtonClick, this); | 301 clearButton.addEventListener("click", this._onClearButtonClick, this); |
| 302 this._panelToolbar.appendStatusBarItem(clearButton); | 302 this._panelToolbar.appendStatusBarItem(clearButton); |
| 303 | 303 |
| 304 this._filterBar = this._createFilterBar(); | 304 this._filterBar = this._createFilterBar(); |
| 305 this._panelToolbar.appendStatusBarItem(this._filterBar.filterButton()); | 305 this._panelToolbar.appendStatusBarItem(this._filterBar.filterButton()); |
| 306 | 306 |
| 307 var garbageCollectButton = new WebInspector.StatusBarButton(WebInspector
.UIString("Collect garbage"), "garbage-collect-status-bar-item"); | 307 var garbageCollectButton = new WebInspector.StatusBarButton(WebInspector
.UIString("Collect garbage"), "garbage-collect-status-bar-item"); |
| 308 garbageCollectButton.addEventListener("click", this._garbageCollectButto
nClicked, this); | 308 garbageCollectButton.addEventListener("click", this._garbageCollectButto
nClicked, this); |
| 309 this._panelToolbar.appendStatusBarItem(garbageCollectButton); | 309 this._panelToolbar.appendStatusBarItem(garbageCollectButton); |
| 310 | 310 |
| 311 var viewModeLabel = new WebInspector.StatusBarText(WebInspector.UIString
("View Mode:"), "timeline-status-bar-group-label"); |
| 312 this._panelToolbar.appendStatusBarItem(viewModeLabel); |
| 313 |
| 311 var framesToggleButton = new WebInspector.StatusBarButton(WebInspector.U
IString("Frames view. (Activity split into frames)"), "histogram-status-bar-item
"); | 314 var framesToggleButton = new WebInspector.StatusBarButton(WebInspector.U
IString("Frames view. (Activity split into frames)"), "histogram-status-bar-item
"); |
| 312 framesToggleButton.setToggled(this._overviewModeSetting.get() === WebIns
pector.TimelinePanel.OverviewMode.Frames); | 315 framesToggleButton.setToggled(this._overviewModeSetting.get() === WebIns
pector.TimelinePanel.OverviewMode.Frames); |
| 313 framesToggleButton.addEventListener("click", this._overviewModeChanged.b
ind(this, framesToggleButton)); | 316 framesToggleButton.addEventListener("click", this._overviewModeChanged.b
ind(this, framesToggleButton)); |
| 314 this._panelToolbar.appendStatusBarItem(framesToggleButton); | 317 this._panelToolbar.appendStatusBarItem(framesToggleButton); |
| 315 | 318 |
| 316 this._flameChartToggleButton = new WebInspector.StatusBarButton(WebInspe
ctor.UIString("Flame chart view. (Use WASD or time selection to navigate)"), "fl
ame-chart-status-bar-item"); | 319 this._flameChartToggleButton = new WebInspector.StatusBarButton(WebInspe
ctor.UIString("Flame chart view. (Use WASD or time selection to navigate)"), "fl
ame-chart-status-bar-item"); |
| 317 this._flameChartToggleButton.setToggled(this._flameChartEnabledSetting.g
et()); | 320 this._flameChartToggleButton.setToggled(this._flameChartEnabledSetting.g
et()); |
| 318 this._flameChartToggleButton.addEventListener("click", this._flameChartE
nabledChanged.bind(this)); | 321 this._flameChartToggleButton.addEventListener("click", this._flameChartE
nabledChanged.bind(this)); |
| 319 this._panelToolbar.appendStatusBarItem(this._flameChartToggleButton); | 322 this._panelToolbar.appendStatusBarItem(this._flameChartToggleButton); |
| 320 | 323 |
| 324 var captureSettingsLabel = new WebInspector.StatusBarText(WebInspector.U
IString("Capture Details:"), "timeline-status-bar-group-label"); |
| 325 this._panelToolbar.appendStatusBarItem(captureSettingsLabel); |
| 326 |
| 321 this._captureCausesSetting = WebInspector.settings.createSetting("timeli
neCaptureCauses", true); | 327 this._captureCausesSetting = WebInspector.settings.createSetting("timeli
neCaptureCauses", true); |
| 322 this._captureCausesSetting.addChangeListener(this._refreshViews, this); | 328 this._captureCausesSetting.addChangeListener(this._refreshViews, this); |
| 323 this._panelToolbar.appendStatusBarItem(this._createSettingCheckbox(WebIn
spector.UIString("Causes"), | 329 this._panelToolbar.appendStatusBarItem(this._createSettingCheckbox(WebIn
spector.UIString("Causes"), |
| 324 this._capt
ureCausesSetting, | 330 this._capt
ureCausesSetting, |
| 325 WebInspect
or.UIString("Capture causes (e.g., stack traces) for timeline events. (Has perfo
rmance overhead)"))); | 331 WebInspect
or.UIString("Capture causes (e.g., stack traces) for timeline events. (Has perfo
rmance overhead)"))); |
| 326 this._enableJSSamplingSettingSetting = WebInspector.settings.createSetti
ng("timelineEnableJSSampling", false); | 332 this._enableJSSamplingSettingSetting = WebInspector.settings.createSetti
ng("timelineEnableJSSampling", false); |
| 327 this._panelToolbar.appendStatusBarItem(this._createSettingCheckbox(WebIn
spector.UIString("JS Profiler"), | 333 this._panelToolbar.appendStatusBarItem(this._createSettingCheckbox(WebIn
spector.UIString("JS Profiler"), |
| 328 this._enab
leJSSamplingSettingSetting, | 334 this._enab
leJSSamplingSettingSetting, |
| 329 WebInspect
or.UIString("Enable JavaScript sampling profiler. (Has performance overhead)")))
; | 335 WebInspect
or.UIString("Enable JavaScript sampling profiler. (Has performance overhead)")))
; |
| 330 | 336 |
| (...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1587 WebInspector.TimelinePanelFactory.prototype = { | 1593 WebInspector.TimelinePanelFactory.prototype = { |
| 1588 /** | 1594 /** |
| 1589 * @override | 1595 * @override |
| 1590 * @return {!WebInspector.Panel} | 1596 * @return {!WebInspector.Panel} |
| 1591 */ | 1597 */ |
| 1592 createPanel: function() | 1598 createPanel: function() |
| 1593 { | 1599 { |
| 1594 return WebInspector.TimelinePanel.instance(); | 1600 return WebInspector.TimelinePanel.instance(); |
| 1595 } | 1601 } |
| 1596 } | 1602 } |
| OLD | NEW |