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

simulation Simulation
stage SimStage
systemIndex int

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

simulation Simulation
stage SimStage
systemIndex int

TickFinished(Simulation)

Ends a step, including an exceptional or terminal command-only step.

void TickFinished(Simulation simulation)

Parameters

simulation Simulation

TickStarted(Simulation)

Begins a fixed step, before input injection and previous-position snapshots.

void TickStarted(Simulation simulation)

Parameters

simulation Simulation