Browser & Web Performance · Middle · Question 67 of 75
How can you mark custom points in time to see them in DevTools and measure them in code?
- 1
console.time()only, which can't be read by code - ✓Correct answer:
performance.mark()andperformance.measure()from the User Timing API - 3
Date.now()stored in localStorage
Explanation
Marks and measures show up in the Performance panel and can be collected with a PerformanceObserver.