@@ -77,12 +77,16 @@ <h3>Commits</h3>
77
77
return arr . filter ( ( value , idx ) => arr . indexOf ( value ) == idx ) ;
78
78
}
79
79
80
- function add_datum_fields ( datum , sha , bench , run ) {
80
+ function add_datum_fields ( datum , sha , bench , run , selfProfileAvailable ) {
81
81
let html = "" ;
82
82
if ( datum ) {
83
83
html += "<td>" ;
84
84
let txt = datum . toLocaleString ( 'en-US' , { minimumFractionDigits : 2 , maximumFractionDigits : 2 } ) ;
85
- html += `<a href="/detailed-query.html?commit=${ sha } &benchmark=${ bench } &run_name=${ run } ">${ txt } </a>` ;
85
+ if ( selfProfileAvailable ) {
86
+ html += `<a href="/detailed-query.html?commit=${ sha } &benchmark=${ bench } &run_name=${ run } ">${ txt } </a>` ;
87
+ } else {
88
+ html += txt ;
89
+ }
86
90
html += "</td>" ;
87
91
} else {
88
92
html += "<td>-</td>" ;
@@ -368,8 +372,10 @@ <h3>Commits</h3>
368
372
html += "<tr data-field-start=true>" ;
369
373
html += `<th style="width: ${ max_name_width / 2 } em;" data-js-name=${ field . name } >` + truncate_name ( field . name ) + "</th>" ;
370
374
let entry = field . fields [ 0 ] ;
371
- html += add_datum_fields ( entry . datum_a , data . a . commit , field . name , entry . casename ) ;
372
- html += add_datum_fields ( entry . datum_b , data . b . commit , field . name , entry . casename ) ;
375
+ html += add_datum_fields ( entry . datum_a , data . a . commit ,
376
+ field . name , entry . casename , false ) ;
377
+ html += add_datum_fields ( entry . datum_b , data . b . commit ,
378
+ field . name , entry . casename , false ) ;
373
379
let pct = add_percent ( entry . percent , dodgy , "??" ) ;
374
380
html += `<td>${ pct } </td>` ;
375
381
html += "</tr>" ;
@@ -391,8 +397,10 @@ <h3>Commits</h3>
391
397
html += "<tr>" ;
392
398
html += "<td>" + entry . casename + "</td>" ;
393
399
// No base comparison commit for the first datum
394
- html += add_datum_fields ( entry . datum_a , data . a . commit , field . name , entry . casename ) ;
395
- html += add_datum_fields ( entry . datum_b , data . b . commit , field . name , entry . casename ) ;
400
+ html += add_datum_fields ( entry . datum_a , data . a . commit ,
401
+ field . name , entry . casename , true ) ;
402
+ html += add_datum_fields ( entry . datum_b , data . b . commit ,
403
+ field . name , entry . casename , true ) ;
396
404
let pct = add_percent ( entry . percent , dodgy , "??" ) ;
397
405
let diff_href =
398
406
`/detailed-query.html?commit=${ data . b . commit } &base_commit=${ data . a . commit } &benchmark=${ field . name } &run_name=${ entry . casename } ` ;
0 commit comments