refactor(project): 清理闲置展示链路与重复采样状态

This commit is contained in:
2026-11-09 00:41:09 +08:00
parent 7b3abe37c5
commit b73d51c953
57 changed files with 210 additions and 2822 deletions
+1 -2
View File
@@ -4,7 +4,6 @@ import SwiftUI
struct CPUCoreGrid: View {
let values: [Double]
let kinds: [Int: CPUCoreTopology.Kind]
let interval: TimeInterval
private func color(_ kind: CPUCoreTopology.Kind?) -> Color {
switch kind {
@@ -141,7 +140,7 @@ private struct CPUCoreGridPreviews: View {
VStack(alignment: .leading, spacing: 4) {
Text("\(count) cores").font(.caption)
CPUCoreGrid(values: (0..<count).map { Double(($0 * 17) % 90 + 5) / 100 },
kinds: Dictionary(uniqueKeysWithValues: (0..<count).map { ($0, $0 < count / 3 ? .efficiency : .performance) }), interval: 2)
kinds: Dictionary(uniqueKeysWithValues: (0..<count).map { ($0, $0 < count / 3 ? .efficiency : .performance) }))
}
}
}.padding().frame(width: width)