ov.capture.probes.perf#

Performance probe: Navigation Timing, paint, web-vitals entries, CDP counters.

An init script installs PerformanceObserver``s that accumulate layout-shift and event-timing entries onto ``window.__ov_perf (so per-step CWV attribution is possible downstream); at each captured state the probe reads those plus the Navigation Timing and paint entries, and – on Chromium – Performance.getMetrics via CDP. Web-vitals attribution (naming the offending element) is refined in the cwv analyzer; this probe captures the raw entries deterministically.

Classes

PerfProbe()

Snapshot timing + web-vitals entries + CDP counters per captured state.

class ov.capture.probes.perf.PerfProbe[source]#

Bases: Probe

Snapshot timing + web-vitals entries + CDP counters per captured state.

attach(ctx)[source]#

Subscribe listeners before navigation. Default: no-op.

Return type:

None

capture(ctx)[source]#

Snapshot current state into artifacts. Default: nothing.

Return type:

list[Artifact]