# gpui: Report average dirty-to-present frame timings \(\#63221\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/55007f518bc1d49e6b3291c5eaa1aabf649b36fd)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 55007f518bc1d49e6b3291c5eaa1aabf649b36fd

Requested commit: 55007f518bc1d49e6b3291c5eaa1aabf649b36fd

Commit: 55007f518bc1d49e6b3291c5eaa1aabf649b36fd

Tree: 488dfb70787fe9bc2e06ef528402ba92595fd9ff

Author: Anthony Eid

Committer: GitHub

## Message

```
gpui: Report average dirty-to-present frame timings (#63221)

Extends the existing GPUI frame-duration telemetry with the average time
from a window's first invalidation through presentation.

- Record dirty-to-present durations in each window profiler
- Include the declared root entity type name on window handles
- Add the average and root type to the existing five-minute `Frame
Duration Report` event

Testing:

- `cargo fmt --all -- --check`
- `cargo test -p gpui --features profiler
records_dirty_to_present_durations`
- `cargo check -p gpui --no-default-features`
- `cargo check -p input_latency_ui -p zed`

Release Notes:

- N/A
```

## Parents

- [1ff7cb669b6351eaf2a5b79ccb40f5cd1676b8f8](https://git.cafe/gitcafe/zed/commit/1ff7cb669b6351eaf2a5b79ccb40f5cd1676b8f8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/55007f518bc1d49e6b3291c5eaa1aabf649b36fd?format=markdown)
