Skip to content
Commit Detail

Commit d4da5de

Author
Harris Hancock <harris@cloudflare.com> 2025-09-19 14:17:35 +0100
Parents
12aa8d7
Tree
43e790e
EW-9596 Add perf event marking to other Performance members

I added perf event marks to Performance.mark() and
Performance.measure().

It'd probably make a lot of sense to pass the mark name as the perf
event's name, but our system currently requires the names to be static
strings, so I just left them as "performance_now" and
"performance_measure".

Note that I changed calls to now(js) to the underlying implementation,
dateNow(), to avoid spuriously injecting extra "performance_now" events.

Files changed

1 file changed~1 modified