Bug 130483

Summary: Add option for hiding Confidence Interval Delta on the performance tests results page
Product: WebKit Reporter: Zoltan Horvath <zoltan>
Component: Tools / TestsAssignee: Zoltan Horvath <zoltan>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 77037    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Zoltan Horvath 2014-03-19 15:37:49 PDT
I've found it useful to hide the confidence interval delta from the results table sometimes, for example on copying data, or for clearer look.
This patch introduces a new button for it on the local results page.
Comment 1 Zoltan Horvath 2014-03-19 15:42:31 PDT
Created attachment 227227 [details]
Patch
Comment 2 Ryosuke Niwa 2014-03-20 00:24:39 PDT
Comment on attachment 227227 [details]
Patch

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

> PerformanceTests/resources/results-template.html:600
> +    function clearConfidenceIntervalDeltaBit() {
> +        $('#confidenceIntervalDelta').children().addClass('checked');
> +        $('#confidenceIntervalDelta').children().last().removeClass('checked');
> +    }

I don't think it makes sense to reset this switch.  We should construct the view preserving this value.

> PerformanceTests/resources/results-template.html:619
> +        hideConfidenceIntervalDelta = checkedElement.textContent == 'Hide';

Missing var.
Comment 3 Zoltan Horvath 2014-03-20 09:28:12 PDT
Created attachment 227297 [details]
Patch

(In reply to comment #2)
> I don't think it makes sense to reset this switch.  We should construct the view preserving this value.

I was thinking on the best behavior. It makes sense to preserve it too. I modified the patch.
Comment 4 Ryosuke Niwa 2014-03-20 16:06:50 PDT
Comment on attachment 227297 [details]
Patch

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

> PerformanceTests/resources/results-template.html:395
> +    var hideConfidenceIntervalDelta = $('#confidenceIntervalDelta').children().last().hasClass('checked');
> +

See what we're doing for '#time-memory'.
586	    $('#time-memory').bind('change', function (event, checkedElement) {
587	        shouldIgnoreMemory = checkedElement.textContent == 'Time';
588	        createTable(metrics, runs, shouldIgnoreMemory, referenceIndex);
589	    });
Comment 5 Zoltan Horvath 2014-03-20 18:00:13 PDT
Created attachment 227365 [details]
Patch

I modified it as we've got it for the memory-switcher.
Comment 6 WebKit Commit Bot 2014-03-20 21:05:34 PDT
Comment on attachment 227365 [details]
Patch

Clearing flags on attachment: 227365

Committed r166038: <http://trac.webkit.org/changeset/166038>
Comment 7 WebKit Commit Bot 2014-03-20 21:05:39 PDT
All reviewed patches have been landed.  Closing bug.