RESOLVED FIXED Bug 83701
Web Inspector: Move meta node out of nodes in snapshot serialization.
https://bugs.webkit.org/show_bug.cgi?id=83701
Summary Web Inspector: Move meta node out of nodes in snapshot serialization.
Alexei Filippov
Reported 2012-04-11 09:47:28 PDT
Also add node_count and edge_count to eliminate arrays reallocation.
Attachments
Patch (5.27 KB, patch)
2012-04-11 09:51 PDT, Alexei Filippov
no flags
Patch (6.15 KB, patch)
2012-04-12 06:05 PDT, Alexei Filippov
no flags
Patch (6.17 KB, patch)
2012-04-12 06:58 PDT, Alexei Filippov
no flags
Alexei Filippov
Comment 1 2012-04-11 09:51:54 PDT
Yury Semikhatsky
Comment 2 2012-04-12 05:04:03 PDT
Comment on attachment 136683 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=136683&action=review > Source/WebCore/inspector/front-end/HeapSnapshot.js:159 > + delete this._snapshot.snapshot.meta; Instead of assigning it to a new variable on this._snapshot you can leave "meta" node and access it later using this._snapshot.snapshot.meta, what's wrong with that?
Alexei Filippov
Comment 3 2012-04-12 05:08:15 PDT
Comment on attachment 136683 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=136683&action=review >> Source/WebCore/inspector/front-end/HeapSnapshot.js:159 >> + delete this._snapshot.snapshot.meta; > > Instead of assigning it to a new variable on this._snapshot you can leave "meta" node and access it later using this._snapshot.snapshot.meta, what's wrong with that? Nothing wrong, it's just longer and I have to update it in several places. Do you insist?
Yury Semikhatsky
Comment 4 2012-04-12 05:25:40 PDT
Comment on attachment 136683 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=136683&action=review >>> Source/WebCore/inspector/front-end/HeapSnapshot.js:159 >>> + delete this._snapshot.snapshot.meta; >> >> Instead of assigning it to a new variable on this._snapshot you can leave "meta" node and access it later using this._snapshot.snapshot.meta, what's wrong with that? > > Nothing wrong, it's just longer and I have to update it in several places. Do you insist? this._snapshot.metaNode is not much shorter than this._snapshot.snapshot.meta but requires additional processing of input data, and anyway you can use a local alias if a name feels long.
Alexei Filippov
Comment 5 2012-04-12 06:05:37 PDT
WebKit Review Bot
Comment 6 2012-04-12 06:38:56 PDT
Comment on attachment 136889 [details] Patch Rejecting attachment 136889 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: t 203 (offset 7 lines). Hunk #4 succeeded at 223 (offset 7 lines). Hunk #5 FAILED at 798. 1 out of 5 hunks FAILED -- saving rejects to file Source/WebCore/inspector/front-end/HeapSnapshot.js.rej patching file LayoutTests/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file LayoutTests/inspector/profiler/heap-snapshot-test.js Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Yury Semik..." exit_code: 1 cwd: /mnt/git/webkit-commit-queue/ Full output: http://queues.webkit.org/results/12395240
Alexei Filippov
Comment 7 2012-04-12 06:58:03 PDT
WebKit Review Bot
Comment 8 2012-04-12 08:57:36 PDT
Comment on attachment 136899 [details] Patch Clearing flags on attachment: 136899 Committed r113988: <http://trac.webkit.org/changeset/113988>
WebKit Review Bot
Comment 9 2012-04-12 08:57:42 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.