js-perf-toolkit
js-perf-toolkit copied to clipboard
Performance marks are not remembered in subsequent `page.evaluate` statements
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!