diff --git a/www/dev.php b/www/dev.php index b5cc968ee6..44ab12e996 100644 --- a/www/dev.php +++ b/www/dev.php @@ -277,6 +277,55 @@ function initTable(data) }); return; } + if (info.colName === 'metrics.backend.sqlDetails.Explain') + { + const explains = data.metrics.backend.sqlDetails.filter(x => x.Explain && x.Explain.length); + zui.Modal.showError({ + title: `Explain Details (${explains.length})`, + html: true, + size: 'lg', + mono: false, + error: [ + '
| id | ', + 'Extra | ', + 'Key | ', + 'Key Len | ', + 'Possible Keys | ', + 'Ref | ', + 'Rows | ', + 'Select Type | ', + 'Table | ', + 'Type | ', + '
|---|---|---|---|---|---|---|---|---|---|
| #${profile.Query_ID} ${profile.Query} (${profile.Duration}ms) | `, + '|||||||||
| ${explain.id} | `, + `${explain.Extra} | `, + `${explain.key} | `, + `${explain.key_len} | `, + `${explain.possible_keys} | `, + `${explain.ref} | `, + `${explain.rows} | `, + `${explain.select_type} | `, + `${explain.table} | `, + `${explain.type} | `, + '