RESOLVED INVALID 94351
Web Inspector: make profiles panel a lazily loaded module.
https://bugs.webkit.org/show_bug.cgi?id=94351
Summary Web Inspector: make profiles panel a lazily loaded module.
Pavel Feldman
Reported 2012-08-17 08:30:18 PDT
Patch to follow.
Attachments
Patch (35.44 KB, patch)
2012-08-17 08:48 PDT, Pavel Feldman
yurys: review+
webkit.review.bot: commit-queue-
[Patch] for landing (36.13 KB, patch)
2012-08-17 09:18 PDT, Pavel Feldman
no flags
[Patch] for landing 2 (36.70 KB, patch)
2012-08-17 09:32 PDT, Pavel Feldman
no flags
[Patch] for landing 3 (38.21 KB, patch)
2012-08-17 10:06 PDT, Pavel Feldman
no flags
Archive of layout-test-results from gce-cr-linux-04 (519.98 KB, application/zip)
2012-08-17 12:05 PDT, WebKit Review Bot
no flags
Pavel Feldman
Comment 1 2012-08-17 08:48:03 PDT
Yury Semikhatsky
Comment 2 2012-08-17 09:07:24 PDT
Comment on attachment 159134 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=159134&action=review > Source/WebCore/inspector/front-end/HeapSnapshotView.js:411 > + return this.parent.getProfiles(WebInspector.HeapSnapshotProfileType.TypeId); I'd wrap this.parent into a _profilesPanel() getter. > Source/WebCore/inspector/front-end/InspectorFrontendAPI.js:60 > + return WebInspector.panels.profiles && WebInspector.CPUProfileType.instance && WebInspector.CPUProfileType.instance.isRecordingProfile(); Is this change really needed? > Source/WebCore/inspector/front-end/ProfilesPanel.js:1102 > + if (WebInspector.inspectorView.currentPanel() !== WebInspector.ProfilesPanel._instance) Please pass reference to ProfilesPanel directly into RevealInHeapSnapshotContextMenuProvider constructor. You wouldn't need WebInspector.ProfilesPanel._instance then.
Pavel Feldman
Comment 3 2012-08-17 09:18:00 PDT
(In reply to comment #2) > (From update of attachment 159134 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=159134&action=review > > > Source/WebCore/inspector/front-end/HeapSnapshotView.js:411 > > + return this.parent.getProfiles(WebInspector.HeapSnapshotProfileType.TypeId); > > I'd wrap this.parent into a _profilesPanel() getter. > I think it should be renamed, but I am hesitant touching this .parent guy - it all may collapse :). On a broader note, I don't think view needs a pointer to the panel - we need to fix the design. > > Source/WebCore/inspector/front-end/InspectorFrontendAPI.js:60 > > + return WebInspector.panels.profiles && WebInspector.CPUProfileType.instance && WebInspector.CPUProfileType.instance.isRecordingProfile(); > > Is this change really needed? > Yes, on default WebKit container, if module is not yet loaded, then profiling is not enabled. > > Source/WebCore/inspector/front-end/ProfilesPanel.js:1102 > > + if (WebInspector.inspectorView.currentPanel() !== WebInspector.ProfilesPanel._instance) > > Please pass reference to ProfilesPanel directly into RevealInHeapSnapshotContextMenuProvider constructor. You wouldn't need WebInspector.ProfilesPanel._instance then. As we agreed offline, it is a part of a bigger change. Uploading new version of the patch with tests fixed.
Pavel Feldman
Comment 4 2012-08-17 09:18:22 PDT
Created attachment 159138 [details] [Patch] for landing
Pavel Feldman
Comment 5 2012-08-17 09:32:30 PDT
Created attachment 159141 [details] [Patch] for landing 2
Pavel Feldman
Comment 6 2012-08-17 10:06:00 PDT
Created attachment 159146 [details] [Patch] for landing 3
WebKit Review Bot
Comment 7 2012-08-17 11:57:40 PDT
Comment on attachment 159146 [details] [Patch] for landing 3 Clearing flags on attachment: 159146 Committed r125922: <http://trac.webkit.org/changeset/125922>
WebKit Review Bot
Comment 8 2012-08-17 12:05:05 PDT
Comment on attachment 159134 [details] Patch Attachment 159134 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13531111 New failing tests: inspector/profiler/heap-snapshot-loader.html
WebKit Review Bot
Comment 9 2012-08-17 12:05:40 PDT
Created attachment 159173 [details] Archive of layout-test-results from gce-cr-linux-04 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-04 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Brian Burg
Comment 10 2014-12-12 13:41:07 PST
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests. Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.
Note You need to log in before you can comment on or make changes to this bug.