updated cargo.toml, and contributing.md

This commit is contained in:
ademerdogan2008 2026-06-26 12:36:41 -05:00
parent 6dd3c610f0
commit 83ab5d8ec7
2 changed files with 6 additions and 3 deletions

View file

@ -95,12 +95,14 @@ cargo run --release --features profile-with-tracy -- serve
3. In Tracy, connect to the running `rojo` process.
4. Perform the actions you want to profile (syncing, building, etc.) and inspect the timeline in Tracy.
Short-lived commands like `build` may exit before Tracy can connect. Set `TRACY_NO_EXIT=1` to keep the process alive until you connect:
Short-lived commands like `build` may exit before Tracy can connect. Set `TRACY_NO_EXIT=1` to keep the process alive until you connect (not supported on macOS):
```bash
TRACY_NO_EXIT=1 cargo run --release --features profile-with-tracy -- build
TRACY_NO_EXIT=1 cargo run --release --features profile-with-tracy -- build test-projects/benchmark_small_place --output /tmp/out.rbxlx
```
On macOS, prefer profiling long-running commands like `serve` instead.
### Adding instrumentation
Use these `profiling` macros in Rust code: