Skip to main content

Module schema

Module schema 

Source
Expand description

The portable browser trace format, as Rust knows it (issue #87).

A trace is written by the JavaScript recorder and read by JavaScript, Python and Rust. The layout is the contract between them, so every name and value a reader has to agree on lives here, mirroring js/src/traces/schema.js.

Structs§

TraceCheckpointReason
Why a checkpoint was taken.
TraceCounts
How many members of each kind a bundle holds.
TraceDropReason
Why a record was dropped.
TraceEvent
Event kinds that share the one ordered timeline.
TraceFiles
Names every reader looks for inside a bundle.
TraceLiveState
What a live-state record changed.
TraceManifest
What a bundle says about the run that produced it.
TraceMode
What the recorder captures.
TraceMutationKind
Record kinds inside a mutation batch.
TraceOutcome
How a trace ended, recorded in the manifest.
TraceReplaySupport
What a bundle’s records let a viewer reproduce.

Constants§

TRACE_EVENT_SOURCES
Event families a caller can subscribe the recorder to.
TRACE_FORMAT
Value of manifest.json’s format field, for every version.
TRACE_SCHEMA_VERSION
Schema version of the bundle.

Functions§

assert_readable_manifest
Check that a manifest can be read by this version of the format.
sequence_name
Format a bundle member’s sequence number.