We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45c892f commit f8a289bCopy full SHA for f8a289b
2 files changed
.husky/pre-commit
@@ -1 +1 @@
1
-bunx lint-staged
+npx lint-staged
src/utils/startupProfiler.ts
@@ -142,6 +142,13 @@ export function profileReport(): void {
142
logForDebugging('Startup profiling report:')
143
logForDebugging(getReport())
144
}
145
+
146
+ // Clear startup marks to prevent PerformanceMark accumulation in long-lived
147
+ // processes (daemon, cron). After this point startup marks are no longer needed
148
+ // — the report has been written and the Statsig event has been logged.
149
+ const perf = getPerformance()
150
+ perf.clearMarks()
151
+ memorySnapshots.length = 0
152
153
154
export function isDetailedProfilingEnabled(): boolean {
0 commit comments