| 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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 var clearButton = new WebInspector.ToolbarButton(WebInspector.UIString("
Clear recording"), "clear-toolbar-item"); | 373 var clearButton = new WebInspector.ToolbarButton(WebInspector.UIString("
Clear recording"), "clear-toolbar-item"); |
| 374 clearButton.addEventListener("click", this._clear, this); | 374 clearButton.addEventListener("click", this._clear, this); |
| 375 this._panelToolbar.appendToolbarItem(clearButton); | 375 this._panelToolbar.appendToolbarItem(clearButton); |
| 376 | 376 |
| 377 this._panelToolbar.appendSeparator(); | 377 this._panelToolbar.appendSeparator(); |
| 378 | 378 |
| 379 this._panelToolbar.appendText(WebInspector.UIString("Capture:")); | 379 this._panelToolbar.appendText(WebInspector.UIString("Capture:")); |
| 380 | 380 |
| 381 this._captureNetworkSetting.addChangeListener(this._onNetworkChanged, th
is); | 381 this._captureNetworkSetting.addChangeListener(this._onNetworkChanged, th
is); |
| 382 if (!Runtime.experiments.isEnabled("timelineRecordingPerspectives") || p
erspectiveSetting.get() === WebInspector.TimelinePanel.Perspectives.Custom) { | 382 if (!Runtime.experiments.isEnabled("timelineRecordingPerspectives") || p
erspectiveSetting.get() === WebInspector.TimelinePanel.Perspectives.Custom) { |
| 383 if (Runtime.experiments.isEnabled("networkRequestsOnTimeline")) { | 383 this._panelToolbar.appendToolbarItem(this._createSettingCheckbox( |
| 384 this._panelToolbar.appendToolbarItem(this._createSettingCheckbox
(WebInspector.UIString("Network"), | 384 WebInspector.UIString("Network"), this._captureNetworkSetting, W
ebInspector.UIString("Show network requests information"))); |
| 385
this._captureNetworkSetting, | 385 this._panelToolbar.appendToolbarItem(this._createSettingCheckbox( |
| 386
WebInspector.UIString("Capture network requests information"))); | 386 WebInspector.UIString("JS Profile"), this._captureJSProfileSetti
ng, WebInspector.UIString("Capture JavaScript stacks with sampling profiler. (Ha
s performance overhead)"))); |
| 387 } | |
| 388 this._panelToolbar.appendToolbarItem(this._createSettingCheckbox(Web
Inspector.UIString("JS Profile"), | |
| 389 thi
s._captureJSProfileSetting, | |
| 390 Web
Inspector.UIString("Capture JavaScript stacks with sampling profiler. (Has perfo
rmance overhead)"))); | |
| 391 this._captureMemorySetting.addChangeListener(this._onModeChanged, th
is); | 387 this._captureMemorySetting.addChangeListener(this._onModeChanged, th
is); |
| 392 this._panelToolbar.appendToolbarItem(this._createSettingCheckbox(Web
Inspector.UIString("Memory"), | 388 this._panelToolbar.appendToolbarItem(this._createSettingCheckbox( |
| 393 thi
s._captureMemorySetting, | 389 WebInspector.UIString("Memory"), this._captureMemorySetting, Web
Inspector.UIString("Capture memory information on every timeline event."))); |
| 394 Web
Inspector.UIString("Capture memory information on every timeline event."))); | 390 this._panelToolbar.appendToolbarItem(this._createSettingCheckbox( |
| 395 this._panelToolbar.appendToolbarItem(this._createSettingCheckbox(Web
Inspector.UIString("Paint"), | 391 WebInspector.UIString("Paint"), this._captureLayersAndPicturesSe
tting, WebInspector.UIString("Capture graphics layer positions and painted pictu
res. (Has performance overhead)"))); |
| 396 thi
s._captureLayersAndPicturesSetting, | |
| 397 Web
Inspector.UIString("Capture graphics layer positions and painted pictures. (Has
performance overhead)"))); | |
| 398 } | 392 } |
| 399 | 393 |
| 400 this._captureFilmStripSetting.addChangeListener(this._onModeChanged, thi
s); | 394 this._captureFilmStripSetting.addChangeListener(this._onModeChanged, thi
s); |
| 401 this._panelToolbar.appendToolbarItem(this._createSettingCheckbox(WebInsp
ector.UIString("Screenshots"), | 395 this._panelToolbar.appendToolbarItem(this._createSettingCheckbox(WebInsp
ector.UIString("Screenshots"), |
| 402 this._c
aptureFilmStripSetting, | 396 this._c
aptureFilmStripSetting, |
| 403 WebInsp
ector.UIString("Capture screenshots while recording. (Has performance overhead)"
))); | 397 WebInsp
ector.UIString("Capture screenshots while recording. (Has performance overhead)"
))); |
| 404 | 398 |
| 405 this._panelToolbar.appendSeparator(); | 399 this._panelToolbar.appendSeparator(); |
| 406 var garbageCollectButton = new WebInspector.ToolbarButton(WebInspector.U
IString("Collect garbage"), "garbage-collect-toolbar-item"); | 400 var garbageCollectButton = new WebInspector.ToolbarButton(WebInspector.U
IString("Collect garbage"), "garbage-collect-toolbar-item"); |
| 407 garbageCollectButton.addEventListener("click", this._garbageCollectButto
nClicked, this); | 401 garbageCollectButton.addEventListener("click", this._garbageCollectButto
nClicked, this); |
| (...skipping 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2067 * @override | 2061 * @override |
| 2068 * @param {!WebInspector.Target} target | 2062 * @param {!WebInspector.Target} target |
| 2069 */ | 2063 */ |
| 2070 targetRemoved: function(target) | 2064 targetRemoved: function(target) |
| 2071 { | 2065 { |
| 2072 this._targets.remove(target, true); | 2066 this._targets.remove(target, true); |
| 2073 }, | 2067 }, |
| 2074 | 2068 |
| 2075 __proto__: WebInspector.Object.prototype | 2069 __proto__: WebInspector.Object.prototype |
| 2076 } | 2070 } |
| OLD | NEW |