← Declarative Performance Observer

v151 · origin trial · performance entry

PerformanceSessionEndTiming

A new PerformanceEntry type proposed by the Declarative Performance Observer: an anonymous terminal marker the browser appends when a session ends, giving the precise total session duration (dwell time after the last recorded event) that JavaScript cannot reliably measure.

structure

Inherits from PerformanceEntry. In the report payload it serializes as:

{ "name": "session-end-event",
  "entryType": "session-end",
  "startTime": 240200,
  "duration": 0 }
entryType"session-end"
name"session-end-event" (in the explainer's payload examples)
startTimeThe timestamp of session termination; subject to standard HR-Time clock-resolution coarsening
duration0
Source: explainer — report format and example payload.

semantics

Source: explainer — report format, explicit PerformanceSessionEndTiming vs spec minimalism, report timing, data minimization and opt-in; TOC-vs-content gap verified by reading the full explainer text, 2026-07-28.

examples

Full session report ending with the session-end entry (abridged from the explainer's worked example):

{
  "type": "performance-observer",
  "age": 100,
  "url": "https://www.example.com/second",
  "user_agent": "Mozilla/5.0 …",
  "body": {
    "entries": [
      { "name": "https://www.example.com/second", "entryType": "navigation",
        "startTime": 0, "domainLookupStart": 68, "domainLookupEnd": 120,
        "connectStart": 122, "responseStart": 562 },
      { "name": "hero-image-loaded", "entryType": "mark",
        "startTime": 780, "duration": 0 },
      { "name": "session-end-event", "entryType": "session-end",
        "startTime": 240200, "duration": 0 }
    ]
  }
}
// Total session duration: 240200 ms (startTime of the terminal entry).
Source: explainer — example report payload.

browser compatibility

BrowserSupport
Chrome / Edge (Chromium)Origin trial 151–155 with the Declarative Performance Observer feature (ChromeStatus); no BCD entry
FirefoxNo signal
SafariNo signal

security & privacy

Source: explainer — data minimization, timer resolution and side-channels.