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
@@ -4,7 +4,6 @@ import AppKit
@MainActor enum PanelResourceAudit {
#if DEBUG || KYMO_AUDIT
static let enabled = ProcessInfo.processInfo.environment["KYMO_RESOURCE_AUDIT"] == "1"
static let omitted = enabled ? ProcessInfo.processInfo.environment["KYMO_AUDIT_OMIT"] ?? "" : ""
static func run(controller: MenuPanelController, metrics: MetricsStore) {
guard enabled else { return }
@@ -30,8 +29,7 @@ import AppKit
windowNumber: controller.panel.isVisible ? controller.panel.windowNumber : nil,
hoveredPlots: views.filter { $0.input?.hoveredIndex != nil }.count, nativePlots: views.count,
pointerInsidePanel: controller.panel.isVisible && controller.panel.frame.contains(NSEvent.mouseLocation),
plotBounds: views.map { [Double($0.bounds.width), Double($0.bounds.height)] },
animatedPlots: 0)
plotBounds: views.map { [Double($0.bounds.width), Double($0.bounds.height)] })
if event == "open1.10", ProcessInfo.processInfo.environment["KYMO_AUDIT_CAPTURE"] == "1",
let content = controller.panel.contentView { capture(content) }
}
@@ -125,8 +123,6 @@ import AppKit
}
#else
static let enabled = false
static let omitted = ""
static func run(controller: MenuPanelController, metrics: MetricsStore) {}
#endif