WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
83125
Web Inspector: linearise aggregate's retaining size calculation
https://bugs.webkit.org/show_bug.cgi?id=83125
Summary
Web Inspector: linearise aggregate's retaining size calculation
Ilya Tikhonovsky
Reported
2012-04-04 01:52:08 PDT
It gives us no performance gain but gives us the flexibility for future improvements.
Attachments
Patch
(3.89 KB, patch)
2012-04-04 01:55 PDT
,
Ilya Tikhonovsky
no flags
Details
Formatted Diff
Diff
Patch
(10.50 KB, patch)
2012-04-04 06:39 PDT
,
Ilya Tikhonovsky
no flags
Details
Formatted Diff
Diff
Patch
(11.53 KB, patch)
2012-04-04 07:55 PDT
,
Ilya Tikhonovsky
yurys
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Ilya Tikhonovsky
Comment 1
2012-04-04 01:55:21 PDT
Created
attachment 135529
[details]
Patch
Ilya Tikhonovsky
Comment 2
2012-04-04 06:39:40 PDT
Created
attachment 135579
[details]
Patch
Yury Semikhatsky
Comment 3
2012-04-04 07:05:57 PDT
Comment on
attachment 135579
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=135579&action=review
> Source/WebCore/ChangeLog:15 > +2012-04-04 Ilya Tikhonovsky <
loislo@chromium.org
>
Remove duplicate entry.
> Source/WebCore/inspector/front-end/HeapSnapshot.js:1136 > + for (var nodeIndex = this._rootNodeIndex; nodeIndex < onlyNodesLength; nodeIndex += nodeFieldsCount) {
We may want to extract this loop into its own method so that we can measure its performance without _calculateClassesRetainedSize. WDYT?
> Source/WebCore/inspector/front-end/HeapSnapshot.js:1138 > + var selfSize = onlyNodes[nodeIndex + selfSizeOffset];
Given that in other places here we use "node" to get corresponding field value I'd rather use it here as well for consistency. Does it have any impact on the performance of this method?
> Source/WebCore/inspector/front-end/HeapSnapshot.js:1195 > + var dominatedIndexFrom = firstDominatedNodeIndex[nodeIndex / nodeFieldCount];
var nodeOrdinal = nodeIndex / nodeFieldCount; ?
Ilya Tikhonovsky
Comment 4
2012-04-04 07:55:21 PDT
Created
attachment 135588
[details]
Patch
Ilya Tikhonovsky
Comment 5
2012-04-04 08:25:28 PDT
(In reply to
comment #3
)
> (From update of
attachment 135579
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=135579&action=review
> > > Source/WebCore/ChangeLog:15 > > +2012-04-04 Ilya Tikhonovsky <
loislo@chromium.org
(:loislo) (c)> > > Remove duplicate entry.
done.
> > > Source/WebCore/inspector/front-end/HeapSnapshot.js:1136 > > + for (var nodeIndex = this._rootNodeIndex; nodeIndex < onlyNodesLength; nodeIndex += nodeFieldsCount) { > > We may want to extract this loop into its own method so that we can measure its performance without _calculateClassesRetainedSize. WDYT? > > > Source/WebCore/inspector/front-end/HeapSnapshot.js:1138 > > + var selfSize = onlyNodes[nodeIndex + selfSizeOffset]; > > Given that in other places here we use "node" to get corresponding field value I'd rather use it here as well for consistency. Does it have any impact on the performance of this method?
v8 doesn't inline our getters. I'd like to inline classIndex too but it a separate patch. Also in general we have no control over filter function.
> > > Source/WebCore/inspector/front-end/HeapSnapshot.js:1195 > > + var dominatedIndexFrom = firstDominatedNodeIndex[nodeIndex / nodeFieldCount]; > > var nodeOrdinal = nodeIndex / nodeFieldCount; ?
done
Alexei Filippov
Comment 6
2012-04-04 08:33:10 PDT
lgtm
Ilya Tikhonovsky
Comment 7
2012-04-04 08:50:15 PDT
Committed
r113194
: <
http://trac.webkit.org/changeset/113194
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug