Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1091)

Unified Diff: Source/devtools/front_end/TimelinePanel.js

Issue 197233006: DevTools: Allow disabling timeline live update as an experiment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/TimelineModel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/TimelinePanel.js
diff --git a/Source/devtools/front_end/TimelinePanel.js b/Source/devtools/front_end/TimelinePanel.js
index b4f50a22ade06acfacf5f4cf914b1daf0a7d7c23..d9691a65a29e4de0b6d312493bca146c9207809d 100644
--- a/Source/devtools/front_end/TimelinePanel.js
+++ b/Source/devtools/front_end/TimelinePanel.js
@@ -319,8 +319,15 @@ WebInspector.TimelinePanel.prototype = {
this._statusBarButtons.push(this.garbageCollectButton);
panelStatusBarElement.appendChild(this.garbageCollectButton.element);
- panelStatusBarElement.appendChild(WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIString("Capture stacks"), WebInspector.settings.timelineCaptureStacks, true, undefined,
- WebInspector.UIString("Capture JavaScript stack on every timeline event")));
+ if (WebInspector.experimentsSettings.timelineNoLiveUpdate.isEnabled()) {
+ panelStatusBarElement.appendChild(WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIString("Live update"),
+ WebInspector.settings.timelineLiveUpdate, true, undefined,
+ WebInspector.UIString("Show timeline records while recording")));
+ }
+
+ panelStatusBarElement.appendChild(WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIString("Capture stacks"),
+ WebInspector.settings.timelineCaptureStacks, true, undefined,
+ WebInspector.UIString("Capture JavaScript stack on every timeline event")));
this._miscStatusBarItems = panelStatusBarElement.createChild("div", "status-bar-item");
« no previous file with comments | « Source/devtools/front_end/TimelineModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698