RESOLVED FIXED 97890
Web Inspector: Profiles: taking heap snapshot causes error message in console.
https://bugs.webkit.org/show_bug.cgi?id=97890
Summary Web Inspector: Profiles: taking heap snapshot causes error message in console.
eustas.bug
Reported 2012-09-28 04:23:28 PDT
Actual problem is that proxy loader is closed twice. "_snapshotReceived" should never try to close receiver, because it is a callback fired by close. Also minor glitches fixed: - taking snapshot shows "Loading..." status first, and then "Saving xxx%"; - after all chunks are sent "Parsing" status is set and then is replaced with "Saving 100%"; - "Loading %d\%" is not localized.
Attachments
Patch (9.39 KB, patch)
2012-09-28 04:30 PDT, eustas.bug
no flags
Patch (10.18 KB, patch)
2012-09-28 05:03 PDT, eustas.bug
no flags
Patch (10.16 KB, patch)
2012-10-01 07:22 PDT, eustas.bug
no flags
Patch (10.15 KB, patch)
2012-10-01 23:42 PDT, eustas.bug
no flags
eustas.bug
Comment 1 2012-09-28 04:30:29 PDT
Andrey Kosyakov
Comment 2 2012-09-28 04:41:39 PDT
Comment on attachment 166206 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=166206&action=review > Source/WebCore/inspector/front-end/HeapSnapshotView.js:898 > + var status = this._savingToFile ? "Saving\u2026 %d\%" : "Loading\u2026 %d\%"; We prefer localizeble string literals always to be within UIString(), even if it may be a bit more code. Also, now that this handles both saving and loading, I think the method could be renamed to something more generic. > Source/WebCore/inspector/front-end/HeapSnapshotView.js:903 > + _updateSnapshotStatus: function() { style: { => next line > Source/WebCore/inspector/front-end/HeapSnapshotView.js:1022 > + "Loading\u2026 %d\%", (source.loadedSize() * 100 / source.fileSize()).toFixed(2)); Can we reuse saveStatusUpdate() here?
eustas.bug
Comment 3 2012-09-28 05:02:21 PDT
Comment on attachment 166206 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=166206&action=review >> Source/WebCore/inspector/front-end/HeapSnapshotView.js:898 >> + var status = this._savingToFile ? "Saving\u2026 %d\%" : "Loading\u2026 %d\%"; > > We prefer localizeble string literals always to be within UIString(), even if it may be a bit more code. > Also, now that this handles both saving and loading, I think the method could be renamed to something more generic. Done. >> Source/WebCore/inspector/front-end/HeapSnapshotView.js:903 >> + _updateSnapshotStatus: function() { > > style: { => next line Fixed >> Source/WebCore/inspector/front-end/HeapSnapshotView.js:1022 >> + "Loading\u2026 %d\%", (source.loadedSize() * 100 / source.fileSize()).toFixed(2)); > > Can we reuse saveStatusUpdate() here? Done.
eustas.bug
Comment 4 2012-09-28 05:03:45 PDT
eustas.bug
Comment 5 2012-10-01 07:22:35 PDT
Created attachment 166473 [details] Patch rebased
Yury Semikhatsky
Comment 6 2012-10-01 22:30:08 PDT
Comment on attachment 166473 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=166473&action=review > Source/WebCore/ChangeLog:18 > + - removed edad code in proxy; typo: edad -> dead > Source/WebCore/inspector/front-end/HeapSnapshotView.js:967 > + this._updateTransferProgress(0, 0); Should it be (0, this._totalNumberOfChunks) ?
eustas.bug
Comment 7 2012-10-01 23:33:34 PDT
Comment on attachment 166473 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=166473&action=review >> Source/WebCore/ChangeLog:18 >> + - removed edad code in proxy; > > typo: edad -> dead oops. fixed >> Source/WebCore/inspector/front-end/HeapSnapshotView.js:967 >> + this._updateTransferProgress(0, 0); > > Should it be (0, this._totalNumberOfChunks) ? Sure.
eustas.bug
Comment 8 2012-10-01 23:42:04 PDT
WebKit Review Bot
Comment 9 2012-10-03 02:49:55 PDT
Comment on attachment 166618 [details] Patch Clearing flags on attachment: 166618 Committed r130269: <http://trac.webkit.org/changeset/130269>
WebKit Review Bot
Comment 10 2012-10-03 02:49:59 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.