From: awaken1ng Date: Fri, 25 Jul 2025 00:48:57 +0000 (+0700) Subject: fix(devtools): clear performance measures (#13701) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c875019d49b4c36a88d929ccadc31ad414747c7b;p=thirdparty%2Fvuejs%2Fcore.git fix(devtools): clear performance measures (#13701) close #13700 --- 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) }