Skip to content

Commit c875019

Browse files
authored
fix(devtools): clear performance measures (#13701)
close #13700
1 parent 31f7985 commit c875019

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/runtime-core/src/profiling.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ export function endMeasure(
2828
if (instance.appContext.config.performance && isSupported()) {
2929
const startTag = `vue-${type}-${instance.uid}`
3030
const endTag = startTag + `:end`
31+
const measureName = `<${formatComponentName(instance, instance.type)}> ${type}`
3132
perf.mark(endTag)
32-
perf.measure(
33-
`<${formatComponentName(instance, instance.type)}> ${type}`,
34-
startTag,
35-
endTag,
36-
)
33+
perf.measure(measureName, startTag, endTag)
34+
perf.clearMeasures(measureName)
3735
perf.clearMarks(startTag)
3836
perf.clearMarks(endTag)
3937
}

0 commit comments

Comments
 (0)