Enhance monitoring features and UI:
- Add detailed CPU core monitoring option for better performance control - Update monitoring settings in app configuration - Improve parallel task execution for resource usage monitoring - Modify Telegram notification service to skip alerts from svchost processes - Add "Memory %" column to process table in HTML and update related JavaScript - Create performance test scripts for API response time evaluation
This commit is contained in:
@@ -428,7 +428,7 @@ class ResourceDashboard {
|
||||
|
||||
if (!processes || !Array.isArray(processes)) {
|
||||
const row = document.createElement('tr');
|
||||
row.innerHTML = '<td colspan="4" class="px-4 py-4 text-center text-gray-500">No process data available</td>';
|
||||
row.innerHTML = '<td colspan="5" class="px-4 py-4 text-center text-gray-500">No process data available</td>';
|
||||
tableBody.appendChild(row);
|
||||
return;
|
||||
}
|
||||
@@ -448,6 +448,7 @@ class ResourceDashboard {
|
||||
const processId = process.processId || 0;
|
||||
const cpuUsage = process.cpuUsage || 0;
|
||||
const memoryUsage = process.memoryUsage || 0;
|
||||
const memoryUsagePercentage = process.memoryUsagePercentage || 0;
|
||||
|
||||
row.innerHTML = `
|
||||
<td class="px-4 py-4 whitespace-nowrap">
|
||||
@@ -462,6 +463,9 @@ class ResourceDashboard {
|
||||
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-900">
|
||||
${(memoryUsage / 1024 / 1024).toFixed(1)} MB
|
||||
</td>
|
||||
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-900">
|
||||
${memoryUsagePercentage.toFixed(1)}%
|
||||
</td>
|
||||
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-900">
|
||||
<button onclick="dashboard.killProcess(${processId}, '${processName}')"
|
||||
class="${killButtonClass}" ${killButtonDisabled}>
|
||||
|
||||
Reference in New Issue
Block a user