js-perf-toolkit icon indicating copy to clipboard operation
js-perf-toolkit copied to clipboard

Performance marks are not remembered in subsequent `page.evaluate` statements

Open michael-hoss opened this issue 1 year ago • 0 comments

Just watched your talk at NY Web Performance Meetup, thanks a lot for your insights!

When I run the code of performance marks on my own, I get

Error: page.evaluate: DOMException: Failed to execute 'measure' on 'Performance': The mark 'perf:start' does not exist.

However, it does remember the performance marks when they are all in the same page.evaluate statement.

Am I doing something wrong? Has the behavior changed in the last 2 years? Running in chromium with playwright 1.40.1

Thanks for your help!

michael-hoss avatar Jan 08 '24 17:01 michael-hoss