fix(devtools): clear performance measures (#13701)
ci / test (push) Has been cancelled Details
ci / continuous-release (push) Has been cancelled Details
size data / upload (push) Has been cancelled Details
canary release / canary (push) Has been cancelled Details
canary minor release / canary (push) Has been cancelled Details
Lock Closed Issues / action (push) Has been cancelled Details
Auto close issues with "can't reproduce" label / close-issues (push) Has been cancelled Details

close #13700
This commit is contained in:
awaken1ng 2025-07-25 07:48:57 +07:00 committed by GitHub
parent 31f798581c
commit c875019d49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 5 deletions

View File

@ -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)
}