( instance: ComponentInternalInstance, type: string, )
| 9 | let perf: Performance |
| 10 | |
| 11 | export function startMeasure( |
| 12 | instance: ComponentInternalInstance, |
| 13 | type: string, |
| 14 | ): void { |
| 15 | if (instance.appContext.config.performance && isSupported()) { |
| 16 | perf.mark(`vue-${type}-${instance.uid}`) |
| 17 | } |
| 18 | |
| 19 | if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) { |
| 20 | devtoolsPerfStart(instance, type, isSupported() ? perf.now() : Date.now()) |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | export function endMeasure( |
| 25 | instance: ComponentInternalInstance, |
no test coverage detected