Skip to content

Commit 1070f12

Browse files
committed
fix(devtools): perf: use high-resolution time
1 parent 5898629 commit 1070f12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-core/src/profiling.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function startMeasure(
1414
}
1515

1616
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
17-
devtoolsPerfStart(instance, type, supported ? perf.now() : Date.now())
17+
devtoolsPerfStart(instance, type, isSupported() ? perf.now() : Date.now())
1818
}
1919
}
2020

@@ -33,7 +33,7 @@ export function endMeasure(instance: ComponentInternalInstance, type: string) {
3333
}
3434

3535
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
36-
devtoolsPerfEnd(instance, type, supported ? perf.now() : Date.now())
36+
devtoolsPerfEnd(instance, type, isSupported() ? perf.now() : Date.now())
3737
}
3838
}
3939

0 commit comments

Comments
 (0)