mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 04:45:51 +00:00
fix: 尝试修复 OTEL 的问题
This commit is contained in:
@@ -1 +1 @@
|
||||
bunx lint-staged
|
||||
npx lint-staged
|
||||
|
||||
@@ -142,6 +142,13 @@ export function profileReport(): void {
|
||||
logForDebugging('Startup profiling report:')
|
||||
logForDebugging(getReport())
|
||||
}
|
||||
|
||||
// Clear startup marks to prevent PerformanceMark accumulation in long-lived
|
||||
// processes (daemon, cron). After this point startup marks are no longer needed
|
||||
// — the report has been written and the Statsig event has been logged.
|
||||
const perf = getPerformance()
|
||||
perf.clearMarks()
|
||||
memorySnapshots.length = 0
|
||||
}
|
||||
|
||||
export function isDetailedProfilingEnabled(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user