Bug 84849

Summary: Web Inspector: use composite node provider for diff nodes in heap profiler
Product: WebKit Reporter: Yury Semikhatsky <yurys>
Component: Web Inspector (Deprecated)Assignee: Yury Semikhatsky <yurys>
Status: RESOLVED FIXED    
Severity: Normal CC: alph, apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch pfeldman: review+

Yury Semikhatsky
Reported 2012-04-25 05:17:32 PDT
Instead of overriding HeapSnapshotGridNode.prototype.populateChildren in HeapSnapshotDiffNode we should use a composite nodes provider which will populate first added nodes and after that deleted ones. This step is necessary for adding "reveal element in heap profile" action.
Attachments
Patch (23.39 KB, patch)
2012-04-25 05:24 PDT, Yury Semikhatsky
pfeldman: review+
Yury Semikhatsky
Comment 1 2012-04-25 05:24:39 PDT
Pavel Feldman
Comment 2 2012-04-25 05:26:51 PDT
Comment on attachment 138788 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=138788&action=review > Source/WebCore/inspector/front-end/HeapSnapshotGridNodes.js:711 > + serializeNextItems: function(count, callback) serializeSubsequentItems. > Source/WebCore/inspector/front-end/HeapSnapshotGridNodes.js:713 > + function didReceiveAllItems(items) { { on the next line.
Yury Semikhatsky
Comment 3 2012-04-25 05:29:40 PDT
(In reply to comment #2) > (From update of attachment 138788 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=138788&action=review > > > Source/WebCore/inspector/front-end/HeapSnapshotGridNodes.js:711 > > + serializeNextItems: function(count, callback) > > serializeSubsequentItems. > Done. > > Source/WebCore/inspector/front-end/HeapSnapshotGridNodes.js:713 > > + function didReceiveAllItems(items) { > > { on the next line. Done.
Yury Semikhatsky
Comment 4 2012-04-25 05:31:20 PDT
Note You need to log in before you can comment on or make changes to this bug.