Update profiling.ts

This commit is contained in:
zhangenming 2024-09-12 18:54:13 +08:00 committed by GitHub
parent cd2a0d0b3a
commit 6a6cb9fe37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ export function startMeasure(
if (instance.appContext.config.performance && perf) {
perf.mark(`vue-${type}-${instance.uid}`)
}
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
devtoolsPerfStart(instance, type, timer())
}