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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 this._captureMemorySetting.addChangeListener(this._onModeChanged, this); 357 this._captureMemorySetting.addChangeListener(this._onModeChanged, this);
358 if (WebInspector.experimentsSettings.timelinePowerProfiler.isEnabled() & & 358 if (WebInspector.experimentsSettings.timelinePowerProfiler.isEnabled() & &
359 WebInspector.targetManager.mainTarget().hasCapability(WebInspector.T arget.Capabilities.CanProfilePower)) { 359 WebInspector.targetManager.mainTarget().hasCapability(WebInspector.T arget.Capabilities.CanProfilePower)) {
360 this._capturePowerSetting = WebInspector.settings.createSetting("tim elineCapturePower", false); 360 this._capturePowerSetting = WebInspector.settings.createSetting("tim elineCapturePower", false);
361 panelStatusBarElement.appendChild(this._createSettingCheckbox(WebIns pector.UIString("Power"), 361 panelStatusBarElement.appendChild(this._createSettingCheckbox(WebIns pector.UIString("Power"),
362 this._ capturePowerSetting, 362 this._ capturePowerSetting,
363 WebIns pector.UIString("Capture power information"))); 363 WebIns pector.UIString("Capture power information")));
364 this._capturePowerSetting.addChangeListener(this._onModeChanged, thi s); 364 this._capturePowerSetting.addChangeListener(this._onModeChanged, thi s);
365 } 365 }
366 if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled() & & 366 if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled() & &
367 WebInspector.experimentsSettings.timelineInvalidationTracking.isEnab led()) {
368 this._captureInvalidationTrackingSetting = WebInspector.settings.cre ateSetting("timelineCaptureInvalidationTracking", false);
369 panelStatusBarElement.appendChild(this._createSettingCheckbox(WebIns pector.UIString("Track invalidations (slow)"),
370 this._ captureInvalidationTrackingSetting,
371 WebIns pector.UIString("Capture invalidation tracking")));
372 }
373
374 if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled() & &
367 WebInspector.experimentsSettings.paintProfiler.isEnabled()) { 375 WebInspector.experimentsSettings.paintProfiler.isEnabled()) {
368 this._captureLayersAndPicturesSetting = WebInspector.settings.create Setting("timelineCaptureLayersAndPictures", false); 376 this._captureLayersAndPicturesSetting = WebInspector.settings.create Setting("timelineCaptureLayersAndPictures", false);
369 panelStatusBarElement.appendChild(this._createSettingCheckbox(WebIns pector.UIString("Paint"), 377 panelStatusBarElement.appendChild(this._createSettingCheckbox(WebIns pector.UIString("Paint"),
370 this._ captureLayersAndPicturesSetting, 378 this._ captureLayersAndPicturesSetting,
371 WebIns pector.UIString("Capture graphics layer positions and painted pictures"))); 379 WebIns pector.UIString("Capture graphics layer positions and painted pictures")));
372 } 380 }
373 381
374 this._miscStatusBarItems = panelStatusBarElement.createChild("div", "sta tus-bar-item"); 382 this._miscStatusBarItems = panelStatusBarElement.createChild("div", "sta tus-bar-item");
375 383
376 this._filtersContainer = this.element.createChild("div", "timeline-filte rs-header hidden"); 384 this._filtersContainer = this.element.createChild("div", "timeline-filte rs-header hidden");
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 this._recordingOptionUIControls.forEach(handler); 639 this._recordingOptionUIControls.forEach(handler);
632 WebInspector.inspectorView.setCurrentPanelLocked(!enabled); 640 WebInspector.inspectorView.setCurrentPanelLocked(!enabled);
633 }, 641 },
634 642
635 /** 643 /**
636 * @param {boolean} userInitiated 644 * @param {boolean} userInitiated
637 */ 645 */
638 _startRecording: function(userInitiated) 646 _startRecording: function(userInitiated)
639 { 647 {
640 this._userInitiatedRecording = userInitiated; 648 this._userInitiatedRecording = userInitiated;
641 this._model.startRecording(this._captureStacksSetting.get(), this._captu reMemorySetting.get(), this._captureLayersAndPicturesSetting && this._captureLay ersAndPicturesSetting.get()); 649 this._model.startRecording(this._captureStacksSetting.get(), this._captu reMemorySetting.get(), this._captureLayersAndPicturesSetting && this._captureLay ersAndPicturesSetting.get(), this._captureInvalidationTrackingSetting && this._c aptureInvalidationTrackingSetting.get());
642 if (this._lazyFrameModel) 650 if (this._lazyFrameModel)
643 this._lazyFrameModel.setMergeRecords(false); 651 this._lazyFrameModel.setMergeRecords(false);
644 652
645 for (var i = 0; i < this._overviewControls.length; ++i) 653 for (var i = 0; i < this._overviewControls.length; ++i)
646 this._overviewControls[i].timelineStarted(); 654 this._overviewControls[i].timelineStarted();
647 655
648 if (userInitiated) 656 if (userInitiated)
649 WebInspector.userMetrics.TimelineStarted.record(); 657 WebInspector.userMetrics.TimelineStarted.record();
650 this._setUIControlsEnabled(false); 658 this._setUIControlsEnabled(false);
651 }, 659 },
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 * @param {!WebInspector.TimelineModel.Record} record 1421 * @param {!WebInspector.TimelineModel.Record} record
1414 * @return {boolean} 1422 * @return {boolean}
1415 */ 1423 */
1416 accept: function(record) 1424 accept: function(record)
1417 { 1425 {
1418 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex); 1426 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex);
1419 }, 1427 },
1420 1428
1421 __proto__: WebInspector.TimelineModel.Filter.prototype 1429 __proto__: WebInspector.TimelineModel.Filter.prototype
1422 } 1430 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698