perf: Fixup ordering, fix pathing, docs (#38970)

Release Notes:

- N/A
This commit is contained in:
Nia
2025-09-26 17:28:48 +02:00
committed by GitHub
parent c69912c76a
commit 30b49cfbf5
6 changed files with 35 additions and 20 deletions

View File

@@ -79,6 +79,12 @@ Here's a typical workflow for comparing frame rendering performance between diff
The `script/histogram` tool can accept as many measurement files as you like and will generate a histogram visualization comparing the frame rendering performance data between the provided versions.
### Using `util_macros::perf`
For benchmarking unit tests, annotate them with the `#[perf]` attribute from the `util_macros` crate. Then run `cargo
perf-test -p $CRATE` to benchmark them. See the rustdoc documentation on `crates/util_macros` and `tooling/perf` for
in-depth examples and explanations.
## Contributor links
- [CONTRIBUTING.md](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md)