Skip to content

Commit 6544422

Browse files
fix(runtime): workaround for performance slowing in Chrome 109 (#3995)
This fixes an issue with performance profiling in Chrome 109.
1 parent 44b5535 commit 6544422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/profile.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ export const createTime = (fnName: string, tagName = '') => {
2323

2424
export const uniqueTime = (key: string, measureText: string) => {
2525
if (BUILD.profile && performance.mark) {
26-
if (performance.getEntriesByName(key).length === 0) {
26+
if (performance.getEntriesByName(key, 'mark').length === 0) {
2727
performance.mark(key);
2828
}
2929
return () => {
30-
if (performance.getEntriesByName(measureText).length === 0) {
30+
if (performance.getEntriesByName(measureText, 'measure').length === 0) {
3131
performance.measure(measureText, key);
3232
}
3333
};

0 commit comments

Comments
 (0)