record_frame_timing
function · ferroui-hot-reload · v0.5.0
fn record_frame_timing(top_level: &ferroui_controls::TopLevel, outcome: &crate::ReloadOutcome)
Records accepted-revision timing when FERROUI_RELOAD_TIMINGS=1.
Call on the UI thread immediately after applying the revision. The next
composition batch includes pending layout/scene updates through MediaContext's
normal render pass; this does not force layout or block the UI thread.
Output is one FERROUI_RELOAD_FRAME= JSON line on stderr. Completion means the
batch rendered, not physical display scan-out. Multiple revisions may share a
batch; consumers must retain the batch identity instead of claiming a distinct
visible frame for each revision. Hidden/stopped targets may never complete.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.