From a0b688da80a25cc2539e6552884d679fab3d7429 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Wed, 26 Nov 2025 13:42:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=20PerformanceMonitor?= =?UTF-8?q?=20=E8=B0=83=E8=AF=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/performanceMonitor.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/utils/performanceMonitor.ts b/src/utils/performanceMonitor.ts index 38c07530..2c4b115f 100644 --- a/src/utils/performanceMonitor.ts +++ b/src/utils/performanceMonitor.ts @@ -58,11 +58,6 @@ const performanceMeasures: Array<{ name: string; duration: number; startMark: st */ class PerformanceMonitor { private metrics: PerformanceMetrics = {}; - private isProduction: boolean; - - constructor() { - this.isProduction = process.env.NODE_ENV === 'production'; - } /** * 标记性能时间点 @@ -70,12 +65,6 @@ class PerformanceMonitor { mark(name: string): void { const timestamp = performance.now(); performanceMarks.set(name, timestamp); - - if (!this.isProduction) { - logger.debug('PerformanceMonitor', `⏱️ Mark: ${name}`, { - time: `${timestamp.toFixed(2)}ms` - }); - } } /** @@ -106,12 +95,6 @@ class PerformanceMonitor { endMark }); - if (!this.isProduction) { - logger.debug('PerformanceMonitor', `📊 Measure: ${measureName}`, { - duration: `${duration.toFixed(2)}ms` - }); - } - return duration; }