mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactor StatViewServlet histogram view
This commit is contained in:
@@ -243,8 +243,6 @@ function ajaxResponseForDataSourceSqlStatInfo() {
|
||||
newRow.insertCell(-1).innerHTML = sqlStat.FetchRowCount;
|
||||
newRow.insertCell(-1).innerHTML = sqlStat.RunningCount;
|
||||
newRow.insertCell(-1).innerHTML = sqlStat.ConcurrentMax;
|
||||
var hi = newRow.insertCell(-1);
|
||||
var hiHtml = '';
|
||||
// hiHtml += '<a href="#' + sqlStat.Histogram + '">ExecHistogram</a> |';
|
||||
// hiHtml += '<a href="#' + sqlStat.FetchRowCountHistogram +
|
||||
// '">FetchRow</a> | ';
|
||||
@@ -252,10 +250,9 @@ function ajaxResponseForDataSourceSqlStatInfo() {
|
||||
// '">UpdateCount</a> | ';
|
||||
// hiHtml += '<a href="#' + sqlStat.ExecuteAndResultHoldTimeHistogram +
|
||||
// '">ExecAndRsHold</a>';
|
||||
hiHtml += 'ExecHistogram: [' + sqlStat.Histogram + '] ,';
|
||||
hiHtml += 'FetchRow: [' + sqlStat.FetchRowCountHistogram + '] <br />';
|
||||
hiHtml += 'UpdateCount: [' + sqlStat.EffectedRowCountHistogram + '] ,';
|
||||
hiHtml += 'ExecAndRsHold: [' + sqlStat.ExecuteAndResultHoldTimeHistogram + ']';
|
||||
hi.innerHTML = hiHtml;
|
||||
newRow.insertCell(-1).innerHTML = '[' + sqlStat.Histogram + ']';
|
||||
newRow.insertCell(-1).innerHTML = '[' + sqlStat.FetchRowCountHistogram + ']';
|
||||
newRow.insertCell(-1).innerHTML = '[' + sqlStat.EffectedRowCountHistogram + ']';
|
||||
newRow.insertCell(-1).innerHTML = '[' + sqlStat.ExecuteAndResultHoldTimeHistogram + ']';
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,10 @@
|
||||
<th class="td_lable" width="50">Fetch Row Count</th>
|
||||
<th class="td_lable" width="50">Running Count</th>
|
||||
<th class="td_lable" width="80">Concurrent Max</th>
|
||||
<th class="td_lable" width="370">Histogram</th>
|
||||
<th class="td_lable" width="100">ExecHistogram</th>
|
||||
<th class="td_lable" width="100">FetchRow</th>
|
||||
<th class="td_lable" width="100">UpdateCount</th>
|
||||
<th class="td_lable" width="100">ExecAndRsHold</th>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user