tracy_native_capture
Capture function timings from a native Tracy server to analyze performance across main and server threads. Use after verifying reachability. Returns a capture ID for cost analysis and diffing.
Instructions
Capture function timings from the game's NATIVE Tracy server (TCP 8086).
Use this once tracy_status reports native_tracy.reachable=true and
bin_present=true. The client embeds a native Tracy server (the one the
tracy-profiler GUI connects to) even on builds where the Python profiler
binding is missing. This drives the bundled tracy-capture / tracy-csvexport
CLIs; no module whitelist is needed (native Tracy traces every zone, across
the client's MAIN_THREAD and MC_SERVER threads).
Drive the gameplay you want to measure DURING the window. The returned
capture_id plugs into tracy_get_function_costs / tracy_diff_captures
exactly like an in-game capture.
Args: seconds: capture window, 0 < s <= 60 (default 5). name_contains: case-insensitive filter, e.g. 'arrisCreate' to keep only your mod's functions (matched against "name @ src_file"). top_n: rows returned inline (default 25; the full set is stored for later get_function_costs / diff queries). address/port: native Tracy endpoint (default 127.0.0.1:8086). label: tag for diffing, e.g. 'before' / 'after'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| label | No | ||
| top_n | No | ||
| address | No | 127.0.0.1 | |
| seconds | No | ||
| name_contains | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||