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

Side by Side Diff: Source/devtools/front_end/timeline/TimelinePanel.js

Issue 364153002: DevTools: Timeline: do not force lazyTimelineView to be created. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 this._currentViews[i].removeEventListener(WebInspector.SplitView.Eve nts.SidebarSizeChanged, this._sidebarResized, this); 321 this._currentViews[i].removeEventListener(WebInspector.SplitView.Eve nts.SidebarSizeChanged, this._sidebarResized, this);
322 this._currentViews[i].dispose(); 322 this._currentViews[i].dispose();
323 } 323 }
324 this._currentViews = []; 324 this._currentViews = [];
325 this._stackView.detachChildViews(); 325 this._stackView.detachChildViews();
326 }, 326 },
327 327
328 _createRecordingOptions: function() 328 _createRecordingOptions: function()
329 { 329 {
330 var topPaneSidebarElement = this._topPane.sidebarElement(); 330 var topPaneSidebarElement = this._topPane.sidebarElement();
331
332 this._captureStacksSetting = WebInspector.settings.createSetting("timeli neCaptureStacks", true); 331 this._captureStacksSetting = WebInspector.settings.createSetting("timeli neCaptureStacks", true);
333 topPaneSidebarElement.appendChild(WebInspector.SettingsUI.createSettingC heckbox(WebInspector.UIString("Capture stacks"), 332 topPaneSidebarElement.appendChild(WebInspector.SettingsUI.createSettingC heckbox(WebInspector.UIString("Capture stacks"),
334 this._captureStacksSetting, true, unde fined, 333 this._captureStacksSetting, true, unde fined,
335 WebInspector.UIString("Capture JavaScr ipt stack on every timeline event"))); 334 WebInspector.UIString("Capture JavaScr ipt stack on every timeline event")));
336 335
337 this._captureMemorySetting = WebInspector.settings.createSetting("timeli neCaptureMemory", false); 336 this._captureMemorySetting = WebInspector.settings.createSetting("timeli neCaptureMemory", false);
338 topPaneSidebarElement.appendChild(WebInspector.SettingsUI.createSettingC heckbox(WebInspector.UIString("Capture memory"), 337 topPaneSidebarElement.appendChild(WebInspector.SettingsUI.createSettingC heckbox(WebInspector.UIString("Capture memory"),
339 this._captureMemorySetting, true, unde fined, 338 this._captureMemorySetting, true, unde fined,
340 WebInspector.UIString("Capture memory information on every timeline event"))); 339 WebInspector.UIString("Capture memory information on every timeline event")));
341 this._captureMemorySetting.addChangeListener(this._onModeChanged, this); 340 this._captureMemorySetting.addChangeListener(this._onModeChanged, this);
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 648
650 if (this._capturePowerSetting && this._capturePowerSetting.get()) { 649 if (this._capturePowerSetting && this._capturePowerSetting.get()) {
651 if (!isFrameMode) // Frame mode skews time, don't render aux overvi ews. 650 if (!isFrameMode) // Frame mode skews time, don't render aux overvi ews.
652 this._overviewControls.push(new WebInspector.TimelinePowerOvervi ew(this._model)); 651 this._overviewControls.push(new WebInspector.TimelinePowerOvervi ew(this._model));
653 this._addModeView(new WebInspector.TimelinePowerGraph(this, this._mo del)); 652 this._addModeView(new WebInspector.TimelinePowerGraph(this, this._mo del));
654 } 653 }
655 654
656 if (this._captureTracingSetting && this._captureTracingSetting.get()) 655 if (this._captureTracingSetting && this._captureTracingSetting.get())
657 this._addModeView(new WebInspector.TimelineTracingView(this, this._t racingModel, this._model)); 656 this._addModeView(new WebInspector.TimelineTracingView(this, this._t racingModel, this._model));
658 657
659 this._timelineView().setFrameModel(isFrameMode ? this._frameModel() : nu ll); 658 if (this._lazyTimelineView)
659 this._lazyTimelineView.setFrameModel(isFrameMode ? this._frameModel( ) : null);
alph 2014/07/03 10:16:44 I'm wondering how it's going to setFrameModel when
loislo 2014/07/03 11:37:32 If we selected a mode where TimelineView needs to
660
660 this._overviewPane.setOverviewControls(this._overviewControls); 661 this._overviewPane.setOverviewControls(this._overviewControls);
661 this.doResize(); 662 this.doResize();
662 this._updateSelectedRangeStats(); 663 this._updateSelectedRangeStats();
663 664
664 this._stackView.show(this._searchableView.element); 665 this._stackView.show(this._searchableView.element);
665 }, 666 },
666 667
667 /** 668 /**
668 * @param {boolean} userInitiated 669 * @param {boolean} userInitiated
669 */ 670 */
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 * @param {!WebInspector.TimelineModel.Record} record 1446 * @param {!WebInspector.TimelineModel.Record} record
1446 * @return {boolean} 1447 * @return {boolean}
1447 */ 1448 */
1448 accept: function(record) 1449 accept: function(record)
1449 { 1450 {
1450 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex); 1451 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex);
1451 }, 1452 },
1452 1453
1453 __proto__: WebInspector.TimelineModel.Filter.prototype 1454 __proto__: WebInspector.TimelineModel.Filter.prototype
1454 } 1455 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698