RESOLVED FIXED 100656
Web Inspector: Implement native memory snapshot grid view
https://bugs.webkit.org/show_bug.cgi?id=100656
Summary Web Inspector: Implement native memory snapshot grid view
Alexei Filippov
Reported 2012-10-29 05:02:52 PDT
Show native memory snapshot in a grid view.
Attachments
screenshot (61.35 KB, image/png)
2012-10-29 05:04 PDT, Alexei Filippov
no flags
Patch (11.48 KB, patch)
2012-10-29 05:12 PDT, Alexei Filippov
no flags
screenshot with expanded items (96.54 KB, image/png)
2012-10-29 05:46 PDT, Alexei Filippov
no flags
screenshot. separate size column + odd-even striped grid (100.34 KB, image/png)
2012-10-29 06:17 PDT, Alexei Filippov
no flags
Patch (11.22 KB, patch)
2012-10-29 06:22 PDT, Alexei Filippov
no flags
screenshot: sorted top level + shifted bars (102.20 KB, image/png)
2012-10-29 06:36 PDT, Alexei Filippov
no flags
Patch (11.25 KB, patch)
2012-10-29 06:42 PDT, Alexei Filippov
no flags
screenshot: no bar shifts (96.40 KB, image/png)
2012-10-29 06:43 PDT, Alexei Filippov
no flags
Patch (11.25 KB, patch)
2012-10-29 06:58 PDT, Alexei Filippov
no flags
screenshot: no bar column title (101.38 KB, image/png)
2012-10-29 07:01 PDT, Alexei Filippov
no flags
Patch (11.80 KB, patch)
2012-10-29 09:32 PDT, Alexei Filippov
no flags
screenshot (102.35 KB, image/png)
2012-10-29 09:45 PDT, Alexei Filippov
no flags
Alexei Filippov
Comment 1 2012-10-29 05:04:30 PDT
Created attachment 171205 [details] screenshot
Alexei Filippov
Comment 2 2012-10-29 05:12:41 PDT
Alexei Filippov
Comment 3 2012-10-29 05:46:56 PDT
Created attachment 171213 [details] screenshot with expanded items
Alexei Filippov
Comment 4 2012-10-29 06:17:04 PDT
Created attachment 171221 [details] screenshot. separate size column + odd-even striped grid
Alexei Filippov
Comment 5 2012-10-29 06:22:18 PDT
Yury Semikhatsky
Comment 6 2012-10-29 06:26:45 PDT
Let's move Inspector data and Other sections to the bottom of the list?
Alexei Filippov
Comment 7 2012-10-29 06:36:19 PDT
Created attachment 171228 [details] screenshot: sorted top level + shifted bars I don't like shifted bars!
Alexei Filippov
Comment 8 2012-10-29 06:42:23 PDT
Alexei Filippov
Comment 9 2012-10-29 06:43:47 PDT
Created attachment 171231 [details] screenshot: no bar shifts
Alexei Filippov
Comment 10 2012-10-29 06:58:08 PDT
Yury Semikhatsky
Comment 11 2012-10-29 07:00:50 PDT
View in context: https://bugs.webkit.org/attachment.cgi?id=171230&action=review > Source/WebCore/inspector/front-end/NativeMemorySnapshotView.js:53 > + * @param {MemoryAgent.MemoryBlock} snapshot snapshot -> profile > Source/WebCore/inspector/front-end/NativeMemorySnapshotView.js:60 > + bar: { title: WebInspector.UIString("Bar"), sortable: false }, Can we merge bar column into size ? > Source/WebCore/inspector/front-end/NativeMemorySnapshotView.js:81 > + var sizeString = Number.withThousandsSeparator((this._nodeData.size / 1024).toFixed(0)) + "\u2009" + WebInspector.UIString("KiB"); Please use Number.bytesToString > Source/WebCore/inspector/front-end/NativeMemorySnapshotView.js:110 > + var maxBarLength = 700; Why not full available table width?
Alexei Filippov
Comment 12 2012-10-29 07:01:04 PDT
Created attachment 171239 [details] screenshot: no bar column title
Alexei Filippov
Comment 13 2012-10-29 09:32:15 PDT
Alexei Filippov
Comment 14 2012-10-29 09:43:22 PDT
(In reply to comment #11) > View in context: https://bugs.webkit.org/attachment.cgi?id=171230&action=review > > > Source/WebCore/inspector/front-end/NativeMemorySnapshotView.js:53 > > + * @param {MemoryAgent.MemoryBlock} snapshot > > snapshot -> profile fixed. > > Source/WebCore/inspector/front-end/NativeMemorySnapshotView.js:60 > > + bar: { title: WebInspector.UIString("Bar"), sortable: false }, > > Can we merge bar column into size ? done. > > Source/WebCore/inspector/front-end/NativeMemorySnapshotView.js:81 > > + var sizeString = Number.withThousandsSeparator((this._nodeData.size / 1024).toFixed(0)) + "\u2009" + WebInspector.UIString("KiB"); > > Please use Number.bytesToString I'm strongly against it. It makes the size value hardly readable. > > Source/WebCore/inspector/front-end/NativeMemorySnapshotView.js:110 > > + var maxBarLength = 700; > > Why not full available table width? done.
Alexei Filippov
Comment 15 2012-10-29 09:45:43 PDT
Created attachment 171268 [details] screenshot
Yury Semikhatsky
Comment 16 2012-10-30 03:28:57 PDT
(In reply to comment #15) > Created an attachment (id=171268) [details] > screenshot I'm not a fan of having the sizes aligned by the right side but I think we can fix this in the next iteration.
WebKit Review Bot
Comment 17 2012-10-30 03:31:35 PDT
Comment on attachment 171260 [details] Patch Clearing flags on attachment: 171260 Committed r132888: <http://trac.webkit.org/changeset/132888>
WebKit Review Bot
Comment 18 2012-10-30 03:31:40 PDT
All reviewed patches have been landed. Closing bug.
Nikita Vasilyev
Comment 19 2012-10-30 04:56:42 PDT
How does color coding work here? I don’t have to open a different panel to know that. Aligning numbers to the right is generally a good practice. http://blog.editage.com/Aligning-Columns
Note You need to log in before you can comment on or make changes to this bug.