Web APIs

performance.getEntries()

Try the free JavaScript compiler

Return the currently retrievable timeline entries in chronological start-time order. Some entry types are available only through observer delivery. Example console output: earlier,later.

Formal Syntax & Structure

javascript syntaxjavascript
performance.getEntries()

Return Value

PerformanceEntry[]

Snapshot of retrievable entries.

Working Example

Example Snippetjavascript
performance.mark("later",{startTime:10}); performance.mark("earlier",{startTime:1}); console.log(performance.getEntries().filter(x=>x.entryType==="mark").map(x=>x.name).join(","));
JavaScript Reference