Bug 148549 - Web Inspector: Rendering Frame tasks making up < 1% of the selection don't appear in the pie chart
Summary: Web Inspector: Rendering Frame tasks making up < 1% of the selection don't ap...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Matt Baker
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-08-27 17:44 PDT by Matt Baker
Modified: 2015-08-31 13:58 PDT (History)
8 users (show)

See Also:


Attachments
[Image] Barely visible Layout slice (227.26 KB, image/png)
2015-08-27 17:44 PDT, Matt Baker
no flags Details
[Patch] Proposed Fix (3.69 KB, patch)
2015-08-30 12:11 PDT, Matt Baker
no flags Details | Formatted Diff | Diff
[Image] New chart behavior (68.64 KB, image/png)
2015-08-30 12:13 PDT, Matt Baker
no flags Details
[Image] Minimum slice sizes: 1% and 1.5% (66.53 KB, image/png)
2015-08-31 11:33 PDT, Matt Baker
no flags Details
[Patch] Proposed Fix (3.69 KB, patch)
2015-08-31 11:52 PDT, Matt Baker
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Baker 2015-08-27 17:44:48 PDT
Created attachment 260101 [details]
[Image] Barely visible Layout slice

* SUMMARY
Rendering Frame tasks making up < 1% of the selection don't appear in the pie chart. A minimum segment percentage should be established to avoid creating sub-pixel chart segments.
Comment 1 Radar WebKit Bug Importer 2015-08-27 17:45:39 PDT
<rdar://problem/22467802>
Comment 2 Matt Baker 2015-08-30 12:11:04 PDT
Created attachment 260250 [details]
[Patch] Proposed Fix
Comment 3 Matt Baker 2015-08-30 12:13:03 PDT
Created attachment 260251 [details]
[Image] New chart behavior

Debugging data shown in legend items not included in patch.
Comment 4 Timothy Hatcher 2015-08-31 11:06:36 PDT
Comment on attachment 260250 [details]
[Patch] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=260250&action=review

> Source/WebInspectorUI/UserInterface/Views/ChartDetailsSectionRow.js:322
> +        // Balance item values so that all non-zero chart segments are visible.
> +        const minimumDisplayValue = this._total * 0.02;

Why not 1%? 2% seems a little big for a minimum to me.
Comment 5 Matt Baker 2015-08-31 11:33:42 PDT
Created attachment 260298 [details]
[Image] Minimum slice sizes: 1% and 1.5%

Layout data point (less than 1% of total selection) drawn at 1% and 1.5%.
Comment 6 Matt Baker 2015-08-31 11:36:07 PDT
(In reply to comment #4)
> Comment on attachment 260250 [details]
> [Patch] Proposed Fix
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=260250&action=review
> 
> > Source/WebInspectorUI/UserInterface/Views/ChartDetailsSectionRow.js:322
> > +        // Balance item values so that all non-zero chart segments are visible.
> > +        const minimumDisplayValue = this._total * 0.02;
> 
> Why not 1%? 2% seems a little big for a minimum to me.

I think 1% is difficult to see, especially with the light stroke around pie slices. The difference between 1, 1.5. and 2% is subtle, but I think it looks better at 1.5 or 2. See previous attachment.
Comment 7 Matt Baker 2015-08-31 11:52:24 PDT
Created attachment 260303 [details]
[Patch] Proposed Fix
Comment 8 WebKit Commit Bot 2015-08-31 13:58:11 PDT
Comment on attachment 260303 [details]
[Patch] Proposed Fix

Clearing flags on attachment: 260303

Committed r189183: <http://trac.webkit.org/changeset/189183>
Comment 9 WebKit Commit Bot 2015-08-31 13:58:14 PDT
All reviewed patches have been landed.  Closing bug.