@@ -389,6 +389,22 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
389
389
</ div >
390
390
</ div >
391
391
</ fieldset >
392
+ < fieldset id ="display ">
393
+ < legend id ="display-toggle " class ="section-heading "> Display< span id ="display-toggle-indicator "> </ span >
394
+ </ legend >
395
+ < div id ="display-content " style ="display: none; ">
396
+ < div class ="section ">
397
+ < div class ="section-heading "> < span > Display raw data</ span >
398
+ < span class ="tooltip "> ?
399
+ < span class ="tooltiptext ">
400
+ Whether to display or not raw data columns.
401
+ </ span >
402
+ </ span >
403
+ </ div >
404
+ < input type ="checkbox " v-model ="showRawData " style ="margin-left: 20px; " />
405
+ </ div >
406
+ </ div >
407
+ </ fieldset >
392
408
< p v-if ="dataLoading && !data "> Loading ...</ p >
393
409
< div v-if ="data " id ="content " style ="margin-top: 15px ">
394
410
< div id ="summary ">
@@ -438,8 +454,8 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
438
454
</ span >
439
455
</ span >
440
456
</ th >
441
- < th > {{before}}</ th >
442
- < th > {{after}}</ th >
457
+ < th v-if =" showRawData " > {{before}}</ th >
458
+ < th v-if =" showRawData " > {{after}}</ th >
443
459
</ tr >
444
460
</ thead >
445
461
< tbody v-if ="testCases.length === 0 ">
@@ -458,17 +474,16 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
458
474
</ a >
459
475
</ td >
460
476
< td >
461
- {{ testCase.significanceFactor ? testCase.significanceFactor.toFixed(2) + "x" :"-"
462
- }}
477
+ {{ testCase.significanceFactor ? testCase.significanceFactor.toFixed(2) + "x" : "-" }}
463
478
</ td >
464
- < td >
479
+ < td v-if =" showRawData " >
465
480
< a v-bind:href ="detailedQueryLink(data.a.commit, testCase) ">
466
- {{ testCase.datumA }}
481
+ < abbr :title =" testCase.datumA " > {{ testCase.datumA.toFixed(2) }}</ abbr >
467
482
</ a >
468
483
</ td >
469
- < td >
484
+ < td v-if =" showRawData " >
470
485
< a v-bind:href ="detailedQueryLink(data.b.commit, testCase) ">
471
- {{ testCase.datumB }}
486
+ < abbr :title =" testCase.datumB " > {{ testCase.datumB.toFixed(2) }}</ abbr >
472
487
</ a >
473
488
</ td >
474
489
</ tr >
@@ -538,6 +553,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
538
553
incrPatched : true
539
554
}
540
555
} ,
556
+ showRawData : false ,
541
557
data : null ,
542
558
dataLoading : false
543
559
} ,
@@ -767,6 +783,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
767
783
}
768
784
toggleFilters ( "filters-content" , "filters-toggle-indicator" ) ;
769
785
toggleFilters ( "search-content" , "search-toggle-indicator" ) ;
786
+ toggleFilters ( "display-content" , "display-toggle-indicator" ) ;
770
787
771
788
function testCaseString ( testCase ) {
772
789
return testCase . benchmark + "-" + testCase . profile + "-" + testCase . scenario ;
@@ -778,6 +795,9 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
778
795
document . getElementById ( "search-toggle" ) . onclick = ( e ) => {
779
796
toggleFilters ( "search-content" , "search-toggle-indicator" ) ;
780
797
} ;
798
+ document . getElementById ( "display-toggle" ) . onclick = ( e ) => {
799
+ toggleFilters ( "display-content" , "display-toggle-indicator" ) ;
800
+ } ;
781
801
782
802
function unique ( arr ) {
783
803
return arr . filter ( ( value , idx ) => arr . indexOf ( value ) == idx ) ;
0 commit comments