mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Fully working Stats
This commit is contained in:
parent
38739f9831
commit
6616a94d28
2 changed files with 8 additions and 19 deletions
|
|
@ -34,27 +34,16 @@ struct CPUStatsDetailView: View {
|
||||||
frequency: statsManager.cpuFrequency
|
frequency: statsManager.cpuFrequency
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StatsCard(title: "Top Processes") {
|
||||||
|
CPUProcessList(processes: topProcesses, accentColor: userColor)
|
||||||
|
}
|
||||||
|
|
||||||
if !statsManager.cpuCoreUsage.isEmpty {
|
if !statsManager.cpuCoreUsage.isEmpty {
|
||||||
StatsCard(title: "Per-Core Usage") {
|
StatsCard(title: "Per-Core Usage") {
|
||||||
CPUCoreUsageGrid(cores: statsManager.cpuCoreUsage, accentColor: userColor)
|
CPUCoreUsageGrid(cores: statsManager.cpuCoreUsage, accentColor: userColor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StatsCard(title: "Details") {
|
|
||||||
CPUDetailsGrid(
|
|
||||||
breakdown: statsManager.cpuBreakdown,
|
|
||||||
loadAverage: statsManager.cpuLoadAverage,
|
|
||||||
uptime: statsManager.cpuUptime,
|
|
||||||
coreCount: statsManager.cpuCoreUsage.count,
|
|
||||||
systemColor: systemColor,
|
|
||||||
userColor: userColor
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
StatsCard(title: "Top Processes") {
|
|
||||||
CPUProcessList(processes: topProcesses, accentColor: userColor)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.padding(16)
|
.padding(16)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,13 +24,13 @@ struct MemoryStatsDetailView: View {
|
||||||
MemoryUsageDashboard(breakdown: statsManager.memoryBreakdown, accentColor: accentColor)
|
MemoryUsageDashboard(breakdown: statsManager.memoryBreakdown, accentColor: accentColor)
|
||||||
}
|
}
|
||||||
|
|
||||||
StatsCard(title: "Pressure & Swap", padding: 16, background: cardBackground, cornerRadius: 12) {
|
|
||||||
MemoryHealthView(breakdown: statsManager.memoryBreakdown, accentColor: accentColor)
|
|
||||||
}
|
|
||||||
|
|
||||||
StatsCard(title: "Top Processes", padding: 16, background: cardBackground, cornerRadius: 12) {
|
StatsCard(title: "Top Processes", padding: 16, background: cardBackground, cornerRadius: 12) {
|
||||||
CPUProcessList(processes: topProcesses, accentColor: accentColor, displayLimit: processDisplayLimit)
|
CPUProcessList(processes: topProcesses, accentColor: accentColor, displayLimit: processDisplayLimit)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StatsCard(title: "Pressure & Swap", padding: 16, background: cardBackground, cornerRadius: 12) {
|
||||||
|
MemoryHealthView(breakdown: statsManager.memoryBreakdown, accentColor: accentColor)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.padding(16)
|
.padding(16)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue