From 86f0b4bd20cdec86dfb5bdb7978d1f6ff4af111a Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Fri, 14 Aug 2026 22:41:54 +0800
Subject: [PATCH] [verified] feat: export performance diagnostics
---
C1.source/Sources/Aligner/DevelopmentDiagnostics.swift | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/C1.source/Sources/Aligner/DevelopmentDiagnostics.swift b/C1.source/Sources/Aligner/DevelopmentDiagnostics.swift
index 9e64cb6..8bed8c5 100644
--- a/C1.source/Sources/Aligner/DevelopmentDiagnostics.swift
+++ b/C1.source/Sources/Aligner/DevelopmentDiagnostics.swift
@@ -9,6 +9,14 @@
return baseURL.appendingPathComponent("aligner-dev.log").path
}()
+ static var logURLs: [URL] {
+ let currentURL = URL(fileURLWithPath: logPath)
+ let previousURL = currentURL
+ .deletingLastPathComponent()
+ .appendingPathComponent("aligner-dev.previous.log")
+ return [currentURL, previousURL]
+ }
+
private static let queue = DispatchQueue(label: "com.ar.Aligner.development-diagnostics")
private static let maxLogBytes: UInt64 = 10 * 1024 * 1024
private static let runID = UUID().uuidString
--
Gitblit v1.9.3