feat(menubar): 拆分紧凑双页面板并按页采样

This commit is contained in:
2026-11-08 10:42:55 +08:00
parent ac8b4a7e6a
commit 41dcc497b5
36 changed files with 465 additions and 288 deletions
+6
View File
@@ -28,6 +28,12 @@ import Foundation
precondition(sorted.last?.id == replacement.id, "Missing footprint sorts last in both directions")
precondition(sorted.first?.id == (direction == .forward ? row.id : large.id))
}
var low = row, high = large, zero = replacement
low.cpuPower = 0.01; high.cpuPower = 3; zero.cpuPower = 0
for direction in [SortOrder.forward, .reverse] {
let sorted = ProcessTableProjection.rows([row, high, low, zero], query: "", sorting: [ProcessSort(key: .power, order: direction)], order: [])
precondition(sorted.last?.cpuPower == nil && sorted.first?.cpuPower == (direction == .forward ? 0 : 3))
}
print("PASS: filtered/live selection, absent selection/snapshot, failed enumeration, actual exit and PID reuse")
}
}