You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ performance }=require('perf_hooks');performance.mark('A');setTimeout(()=>{performance.mark('B');performance.measure('A to B','A','B');constentry=performance.getEntriesByName('A to B','measure');console.log(entry.duration);},10000);
output:
TypeError: performance.getEntriesByName is not a function
at Timeout.setTimeout [as _onTimeout] (repl:4:29)
at ontimeout (timers.js:427:11)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
The text was updated successfully, but these errors were encountered:
targos
added
the
perf_hooks
Issues and PRs related to the implementation of the Performance Timing API.
label
Jul 2, 2018
code:
output:
The text was updated successfully, but these errors were encountered: