# adds tracing for instrumenting non-async functions \(\#44147\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b558be7ec60b265837e34d6f9b6f0ef176c20082

Requested commit: b558be7ec60b265837e34d6f9b6f0ef176c20082

Commit: b558be7ec60b265837e34d6f9b6f0ef176c20082

Tree: f22626a0449522e595c58819a367698ad0422b1d

Author: David Kleingeld

Committer: GitHub

## Message

```
adds tracing for instrumenting non-async functions (#44147)

Tracing code is not included in normal release builds
Documents how to use them in our performance docs
Only the maps and cursors are instrumented atm

# Compile times:
current main: fresh release build (cargo clean then build --release)
377.34 secs
current main: fresh debug build (cargo clean then build )
89.31 secs

tracing tracy: fresh release build (cargo clean then build --release)
374.84 secs
tracing tracy: fresh debug build (cargo clean then build )
88.95 secs

tracing tracy: fresh release build with timings (cargo clean then build
--release --features tracing)
375.77 secs
tracing tracy: fresh debug build with timings (cargo clean then build
--features tracing)
90.03 secs


Release Notes:

- N/A

---------

Co-authored-by: localcc <work@localcc.cc>
```

## Parents

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

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