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_IDrather 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.