Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

Crate psx_telemetry

Crate psx_telemetry 

Source
Expand description

Shared guest/host telemetry id tables.

The guest runtime (psx-engine) emits stage/task/counter events through an emulator-observed Expansion 2 port, and the emulator (emulator-core) decodes and aggregates them. Both sides used to carry hand-synced copies of the id tables; this crate owns the ids, the slot counts, and the compile-time guards once. It is no_std and const-only, so the MIPS guest and host tooling share it freely.

Modules§

counter
Runtime counter ids.
emit
Guest-side telemetry event emitters (Expansion 2 MMIO ports).
stage
Runtime stage ids.
task
Runtime task ids.

Constants§

COUNTER_COUNT
Number of counter slots, including index zero for unknown/reserved ids: the highest counter id plus one (counter::MAX_ID). A counter id at or past this is dropped by the host.
STAGE_COUNT
Number of stage slots, including index zero for unknown/reserved ids: the highest stage id plus one. The host’s stage arrays are indexed by id and out-of-range ids are dropped silently, so this follows stage::MAX_ID rather than a number to keep in step by hand.
TASK_COUNT
Number of task slots, including reserved future scheduler jobs.

Functions§

counter_desc
Host-tooling description for an id: the id’s doc comment from this crate, verbatim. Returns "" for unknown ids.
stage_desc
Host-tooling description for an id: the id’s doc comment from this crate, verbatim. Returns "" for unknown ids.
task_desc
Host-tooling description for an id: the id’s doc comment from this crate, verbatim. Returns "" for unknown ids.