WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
165170
Web Inspector: Improve name sorting in HeapSnapshot data grids
https://bugs.webkit.org/show_bug.cgi?id=165170
Summary
Web Inspector: Improve name sorting in HeapSnapshot data grids
Joseph Pecoraro
Reported
2016-11-29 16:00:52 PST
Summary: Improve name sorting in HeapSnapshot data grids Steps to Reproduce: 1. Inspect this page 2. Take a Heap Snapshot 3. Drill into Heap Snapshot > Object Graph 4. Expand Window object 5. Sort by "Class Name" column => Sorting is difficult to follow. Named properties are mingled with unnamed (internal) properties. A better sort would be grouping named properties and unnamed properties: - Sort named properties by their property name (property names will be unique if they exist) - Sort unnamed properties by their class name (guaranteed) - Sort any tied class names by their object id Now "Class Name" becomes an ambiguous DataGrid column title in Object Graph, so rename it to just "Name". This sort will improve the "Class Name" sort in both the Instances view and the Object Graph, because we fallback to sorting by object id in ties.
Attachments
[PATCH] Proposed Fix
(8.01 KB, patch)
2016-11-29 16:08 PST
,
Joseph Pecoraro
mattbaker
: review+
Details
Formatted Diff
Diff
[IMAGE] Object Graph with improved name sort
(301.21 KB, image/png)
2016-11-29 16:09 PST
,
Joseph Pecoraro
no flags
Details
[IMAGE] Instances with improved name sort (object id)
(229.09 KB, image/png)
2016-11-29 16:09 PST
,
Joseph Pecoraro
no flags
Details
[PATCH] For Landing
(8.96 KB, patch)
2016-11-29 17:19 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2016-11-29 16:01:16 PST
<
rdar://problem/28784421
>
Joseph Pecoraro
Comment 2
2016-11-29 16:08:41 PST
Created
attachment 295663
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 3
2016-11-29 16:09:02 PST
Created
attachment 295664
[details]
[IMAGE] Object Graph with improved name sort
Joseph Pecoraro
Comment 4
2016-11-29 16:09:28 PST
Created
attachment 295666
[details]
[IMAGE] Instances with improved name sort (object id)
Matt Baker
Comment 5
2016-11-29 16:54:40 PST
(In reply to
comment #4
)
> Created
attachment 295666
[details]
> [IMAGE] Instances with improved name sort (object id)
Was this screenshot taken before the column rename to "Name"?
Joseph Pecoraro
Comment 6
2016-11-29 16:59:39 PST
(In reply to
comment #5
)
> (In reply to
comment #4
) > > Created
attachment 295666
[details]
> > [IMAGE] Instances with improved name sort (object id) > > Was this screenshot taken before the column rename to "Name"?
Nope, the Instances view keeps the name "Class Name". Only the "Object Graph" one changed to "Name". Do you think it would make sense to change both to be "Name"?
Matt Baker
Comment 7
2016-11-29 17:04:19 PST
(In reply to
comment #6
)
> (In reply to
comment #5
) > > (In reply to
comment #4
) > > > Created
attachment 295666
[details]
> > > [IMAGE] Instances with improved name sort (object id) > > > > Was this screenshot taken before the column rename to "Name"? > > Nope, the Instances view keeps the name "Class Name". Only the "Object > Graph" one changed to "Name". Do you think it would make sense to change > both to be "Name"?
I think they should both be "Name", since the column has a mix of class names, property names, etc.
Joseph Pecoraro
Comment 8
2016-11-29 17:19:19 PST
Created
attachment 295678
[details]
[PATCH] For Landing
WebKit Commit Bot
Comment 9
2016-11-29 20:22:41 PST
Comment on
attachment 295678
[details]
[PATCH] For Landing Clearing flags on attachment: 295678 Committed
r209115
: <
http://trac.webkit.org/changeset/209115
>
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