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

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

Issue 465223002: [ Do not submit ] Prototype for invalidation analysis Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix multiple paint bug, fix bug where nodes did not linkify properly, minor cleanups Created 6 years, 4 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
Index: Source/devtools/front_end/timeline/TimelinePanel.js
diff --git a/Source/devtools/front_end/timeline/TimelinePanel.js b/Source/devtools/front_end/timeline/TimelinePanel.js
index 9a124852e0de6e4599ef9f4e4643f947fb0b853b..46820154f17bc1b17ac7126c86bfe3db064a3023 100644
--- a/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -364,6 +364,14 @@ WebInspector.TimelinePanel.prototype = {
this._capturePowerSetting.addChangeListener(this._onModeChanged, this);
}
if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled() &&
+ WebInspector.experimentsSettings.timelineInvalidationTracking.isEnabled()) {
+ this._captureInvalidationTrackingSetting = WebInspector.settings.createSetting("timelineCaptureInvalidationTracking", false);
+ panelStatusBarElement.appendChild(this._createSettingCheckbox(WebInspector.UIString("Track invalidations (slow)"),
+ this._captureInvalidationTrackingSetting,
+ WebInspector.UIString("Capture invalidation tracking")));
+ }
+
+ if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled() &&
WebInspector.experimentsSettings.paintProfiler.isEnabled()) {
this._captureLayersAndPicturesSetting = WebInspector.settings.createSetting("timelineCaptureLayersAndPictures", false);
panelStatusBarElement.appendChild(this._createSettingCheckbox(WebInspector.UIString("Paint"),
@@ -638,7 +646,7 @@ WebInspector.TimelinePanel.prototype = {
_startRecording: function(userInitiated)
{
this._userInitiatedRecording = userInitiated;
- this._model.startRecording(this._captureStacksSetting.get(), this._captureMemorySetting.get(), this._captureLayersAndPicturesSetting && this._captureLayersAndPicturesSetting.get());
+ this._model.startRecording(this._captureStacksSetting.get(), this._captureMemorySetting.get(), this._captureLayersAndPicturesSetting && this._captureLayersAndPicturesSetting.get(), this._captureInvalidationTrackingSetting && this._captureInvalidationTrackingSetting.get());
if (this._lazyFrameModel)
this._lazyFrameModel.setMergeRecords(false);

Powered by Google App Engine
This is Rietveld 408576698