WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
87107
Web Inspector: HeapProfiler: upstream retainedSize calculation.
https://bugs.webkit.org/show_bug.cgi?id=87107
Summary
Web Inspector: HeapProfiler: upstream retainedSize calculation.
Ilya Tikhonovsky
Reported
2012-05-22 02:57:48 PDT
See
Bug 87089
- Web Inspector: MetaBug: upstream backend post-processing methods to the front-end. JS implementation is a bit slow. RESULT heap-snapshot: _calculateRetainedSizes= 266 ms vs native HeapSnapshotGenerator::CalculateRetainedSizes 61 ms I'll make it twice faster, about 130ms in the next patch.
Attachments
Patch
(8.49 KB, patch)
2012-05-22 03:09 PDT
,
Ilya Tikhonovsky
yurys
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ilya Tikhonovsky
Comment 1
2012-05-22 03:09:16 PDT
Created
attachment 143248
[details]
Patch
Yury Semikhatsky
Comment 2
2012-05-22 04:31:43 PDT
Comment on
attachment 143248
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=143248&action=review
> Source/WebCore/inspector/front-end/HeapSnapshot.js:1270 > + var nodeSelfSize = nodes[nodeOrdinal * nodeFieldCount + nodeSelfSizeOffset];
You can introduce a var for nodeSelfSizeIndex and use an increment to keep it up to date.
> Source/WebCore/inspector/front-end/HeapSnapshot.js:1276 > + } while (currentNodeOrdinal !== prevNodeOrdinal);
while (currentNodeOrdinal) would work as well as the root index is 0.
Ilya Tikhonovsky
Comment 3
2012-05-22 04:54:09 PDT
Committed
r117953
: <
http://trac.webkit.org/changeset/117953
>
Ilya Tikhonovsky
Comment 4
2012-05-22 07:21:19 PDT
(In reply to
comment #0
)
> See
Bug 87089
- Web Inspector: MetaBug: upstream backend post-processing methods to the front-end. > > JS implementation is a bit slow. > RESULT heap-snapshot: _calculateRetainedSizes= 266 ms > > vs native > > HeapSnapshotGenerator::CalculateRetainedSizes 61 ms > > I'll make it twice faster, about 130ms in the next patch.
Bug 87124
- Web Inspector: HeapSnapshot: speed-up calculateRetainedSize functon. landed as
r117962
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