Bug 130483 - Add option for hiding Confidence Interval Delta on the performance tests results page
Summary: Add option for hiding Confidence Interval Delta on the performance tests resu...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zoltan Horvath
URL:
Keywords:
Depends on:
Blocks: 77037
  Show dependency treegraph
 
Reported: 2014-03-19 15:37 PDT by Zoltan Horvath
Modified: 2014-03-20 21:05 PDT (History)
2 users (show)

See Also:


Attachments
Patch (5.79 KB, patch)
2014-03-19 15:42 PDT, Zoltan Horvath
no flags Details | Formatted Diff | Diff
Patch (4.88 KB, patch)
2014-03-20 09:28 PDT, Zoltan Horvath
no flags Details | Formatted Diff | Diff
Patch (5.73 KB, patch)
2014-03-20 18:00 PDT, Zoltan Horvath
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.