SimLog Module
Every simulation invocation, logged the same way in both runtimes. The hooks live inside the shared simulator code - one record per startCircuitSimulation (kind "build") and one per runFastSimulation invocation that advances the clock (kind "run") - so Electron and the dotnet sidecar cannot instrument differently. Because the renderer's progress bar works by calling runFastSimulation repeatedly with a timeout, each progress-bar update is exactly one record here, and the sidecar's chunked runs produce the same shape: any user-driven session yields directly comparable per-chunk numbers from both runtimes, pulled as JSON by the DevHarness `simLog` command on the Electron side and the SimLog protocol command on the sidecar side. A bounded ring of records rather than prints: process state, not model state (docs/mutableState.md) - written from inside the simulator, which has no dispatch, at the write frequency of a progress tick. A live line per record goes to Log.dbg Log.Sim, so the usual category switches make it visible without a rebuild.
Types and nested modules
| Type/Module | Description |
Functions and values
| Function or value | Description |
Full Usage:
beginInvocation ()
Parameters:
unit
|
|
Full Usage:
clear ()
Parameters:
unit
|
|
|
|
Full Usage:
recentJson ()
Parameters:
unit
Returns: string
|
|
Full Usage:
record kind sheet components fromCycle toCycle ms
Parameters:
SimLogKind
sheet : string
components : int
fromCycle : int
toCycle : int
ms : float
|
|
Full Usage:
sampleCore ()
Parameters:
unit
|