Skip to main content

Module frame_trace

Module frame_trace 

Source
Expand description

Frame histories belong to the recording thread.

Structs§

FrameTrace
Scope
Section
SectionStats

Constants§

DEFAULT_CAPACITY

Functions§

aggregate
Keyed by name, in descending p95 order.
all_max_ever
Sorted descending by duration.
begin_frame
clear_history
clear_max_ever
end_frame
Adds the synthetic between-frames and idle sections after the first frame.
history
Oldest to newest; allocates.
last_frame
max_ever
Duration::ZERO for a name never seen.
percentile
Nearest-rank percentile of ascending samples; empty input returns zero.
record_external
Attributes the sample to the current frame, even if it arrives late.
scope
set_capacity
set_heap_sampler
set_spike_threshold
Duration::MAX disables the spike warning.
with_history
f must not call end_frame, set_capacity, or clear_history; the borrow is held.

Type Aliases§

HeapSampler
Bytes; on wasm32 + Chromium, performance.memory.usedJSHeapSize.