refactor StatViewServlet histogram view

This commit is contained in:
sand
2012-07-22 17:21:34 +08:00
parent 64f7bb4fb9
commit fdb0d10788
2 changed files with 8 additions and 8 deletions
@@ -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>