Summary: | Web Inspector: prepare HeapSnapshot.js for use with native heap snapshot | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yury Semikhatsky <yurys> | ||||||
Component: | Web Inspector (Deprecated) | Assignee: | Yury Semikhatsky <yurys> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | apavlov, keishi, loislo, pfeldman, pmuellr, vsevik, web-inspector-bugs, webkit.review.bot, yurys | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Yury Semikhatsky
2012-12-26 03:43:12 PST
Created attachment 180739 [details]
Patch
Comment on attachment 180739 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180739&action=review otherwise lgtm > Source/WebCore/inspector/front-end/HeapSnapshot.js:1343 > + for (var nodeOrdinal = 0, l = this.nodeCount; nodeOrdinal < l; ++nodeOrdinal) { > + if (nodeOrdinal === rootNodeOrdinal) Please use the same logic here. We don't need additional if statement inside. Created attachment 180740 [details]
Patch
(In reply to comment #2) > Please use the same logic here. We don't need additional if statement inside. Done. Comment on attachment 180740 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180740&action=review > Source/WebCore/ChangeLog:8 > + HeapSnapshot.js now expects root node to be either the first or the last(real) one space between "last" and "(real)"? (In reply to comment #5) > (From update of attachment 180740 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=180740&action=review > > > Source/WebCore/ChangeLog:8 > > + HeapSnapshot.js now expects root node to be either the first or the last(real) one > > space between "last" and "(real)"? Done. Committed r138475: <http://trac.webkit.org/changeset/138475> |