zed/crates/ztracing
Cameron Mcloughlin fe9556a11e
gpui: Map ztracing events to browser performance APIs on web (#62898)
Makes `ztracing` spans work on the web, by mapping them to browser
`performance` APIs.

Since calling into JS from wasm has fairly high overhead, we instead
have a dedicated reporter task that threads send timing information to.

This approach significantly decreases the performance overhead of the
span-capturing thread (which is usually the performance sensitive one),
at the expense of:
- erasing thread information for spans in the browser devtools
- potentially dropping events if the bounded queue becomes full

The first issue can be mitigated by some slightly more sophisticated
capturing, along with a fixup script, which will come in a later PR

---

Release Notes:

- N/A or Added/Fixed/Improved ...
2026-08-20 17:56:02 +00:00
..
src gpui: Map ztracing events to browser performance APIs on web (#62898) 2026-08-20 17:56:02 +00:00
build.rs
Cargo.toml gpui: Map ztracing events to browser performance APIs on web (#62898) 2026-08-20 17:56:02 +00:00
LICENSE-APACHE
LICENSE-GPL