# record_frame_timing

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-hot-reload/function-record_frame_timing/

**function** · [`ferroui-hot-reload`](/docs/0.5.0/api/ferroui-hot-reload/) · v0.5.0

```rust
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.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.HotReload/frame_timing.rs#L15)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
