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
+2 -2
View File
@@ -17,7 +17,7 @@ CORE = sorted(str(p.relative_to(ROOT)) for folder in ("Models", "Monitors", "Ser
for p in (ROOT / "kymo/Core" / folder).glob("*.swift"))
CHECKS = {name: list(CORE) for name in (
"SamplingChecks", "SamplingIntervalChecks", "UnifiedPanelChecks", "MemoryChecks",
"GPUStatisticsChecks", "StageCChecks", "MachPortChecks", "ReleaseServiceChecks")}
"GPUStatisticsChecks", "StageCChecks", "MachPortChecks", "ReleaseServiceChecks", "DetailDemandChecks")}
CHECKS.update({
"BackgroundTrendChecks": CORE + ["kymo/UI/Charts/PanelCurveGeometry.swift"],
"ProcessEnergyChecks": ["kymo/Core/Models/ProcessMetrics.swift", "kymo/Core/Models/ProcessEnergy.swift", "kymo/Core/Monitors/ProcessEnergyMonitor.swift"],
@@ -56,7 +56,7 @@ CHECKS.update({
"LanguageScopeChecks": ["kymo/Core/Services/LanguagePreferences.swift", "kymo/UI/Components/AppLanguageScope.swift"],
"SettingsWindowChecks": ["kymo/Core/Services/SettingsPresentation.swift", "kymo/Features/Settings/SettingsWindowLifecycle.swift"],
"PanelWindowChecks": ["kymo/Features/MenuBar/MenuPanelController.swift", "kymo/Features/MenuBar/PanelLayout.swift",
"kymo/UI/Components/IntervalControl.swift"],
"kymo/Features/MenuBar/PanelWindowObserver.swift", "kymo/UI/Components/IntervalControl.swift"],
"SandboxNetworkChecks": ["kymo/Core/Services/PublicIPAddressService.swift"],
})
GUI = {"NativeMetricDrawingChecks", "NativeContentHostChecks", "NativeProcessTableChecks", "LanguageScopeChecks", "SettingsWindowChecks", "PanelWindowChecks"}