Check more likely condition first in HeapSnapshot._buildAggregates.
Created attachment 134597 [details] Patch
(In reply to comment #1) > Created an attachment (id=134597) [details] > Patch Results of PerformanceTests/inspector/detailed-heapshots-smoke-test.html With the patch applied: RESULT heap-snapshot: _buildAggregates= 4565 ms RESULT heap-snapshot: switch-to-containment-view= 4901 ms Without the patch: RESULT heap-snapshot: _buildAggregates= 5593 ms RESULT heap-snapshot: switch-to-containment-view= 5838 ms
Created attachment 134598 [details] Patch
Comment on attachment 134598 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=134598&action=review > Source/WebCore/inspector/front-end/HeapSnapshot.js:1094 > + if (node.selfSize === 0 && !node.isNative) We don't compare to 0 in WebKit, use !node.selfSize.
(In reply to comment #4) > (From update of attachment 134598 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=134598&action=review > > > Source/WebCore/inspector/front-end/HeapSnapshot.js:1094 > > + if (node.selfSize === 0 && !node.isNative) > > We don't compare to 0 in WebKit, use !node.selfSize. Done.
Committed r112540: <http://trac.webkit.org/changeset/112540>