mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
updated cargo.toml, and contributing.md
This commit is contained in:
parent
6dd3c610f0
commit
83ab5d8ec7
2 changed files with 6 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue