Interface ISimProfiler
- Namespace
- TDMaker.Core
- Assembly
- TDMaker.Core.dll
Optional observational profiling hooks. Preallocate storage, avoid allocation, and do not mutate the world from callbacks.
public interface ISimProfiler
Remarks
The core never reads a wall clock. Host timestamps are excluded from deterministic state and disabled when no profiler is installed.
Methods
SystemFinished(Simulation, SimStage, int)
Ends one pipeline entry.
void SystemFinished(Simulation simulation, SimStage stage, int systemIndex)
Parameters
simulationSimulationstageSimStagesystemIndexint
SystemStarted(Simulation, SimStage, int)
Begins a pipeline entry. Custom systems retain their registered anchor stage; systemIndex distinguishes entries.
void SystemStarted(Simulation simulation, SimStage stage, int systemIndex)
Parameters
simulationSimulationstageSimStagesystemIndexint
TickFinished(Simulation)
Ends a step, including an exceptional or terminal command-only step.
void TickFinished(Simulation simulation)
Parameters
simulationSimulation
TickStarted(Simulation)
Begins a fixed step, before input injection and previous-position snapshots.
void TickStarted(Simulation simulation)
Parameters
simulationSimulation