From c875019d49b4c36a88d929ccadc31ad414747c7b Mon Sep 17 00:00:00 2001 From: awaken1ng Date: Fri, 25 Jul 2025 07:48:57 +0700 Subject: [PATCH] fix(devtools): clear performance measures (#13701) close #13700 --- packages/runtime-core/src/profiling.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/runtime-core/src/profiling.ts b/packages/runtime-core/src/profiling.ts index 1984f5a21f..4e832a7c4a 100644 --- a/packages/runtime-core/src/profiling.ts +++ b/packages/runtime-core/src/profiling.ts @@ -28,12 +28,10 @@ export function endMeasure( if (instance.appContext.config.performance && isSupported()) { const startTag = `vue-${type}-${instance.uid}` const endTag = startTag + `:end` + const measureName = `<${formatComponentName(instance, instance.type)}> ${type}` perf.mark(endTag) - perf.measure( - `<${formatComponentName(instance, instance.type)}> ${type}`, - startTag, - endTag, - ) + perf.measure(measureName, startTag, endTag) + perf.clearMeasures(measureName) perf.clearMarks(startTag) perf.clearMarks(endTag) } -- 2.47.2