Bug 148549

Summary: Web Inspector: Rendering Frame tasks making up < 1% of the selection don't appear in the pie chart
Product: WebKit Reporter: Matt Baker <mattbaker>
Component: Web InspectorAssignee: Matt Baker <mattbaker>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[Image] Barely visible Layout slice
none
[Patch] Proposed Fix
none
[Image] New chart behavior
none
[Image] Minimum slice sizes: 1% and 1.5%
none
[Patch] Proposed Fix none

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.