MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / espInstrumentMachineBegin

Function espInstrumentMachineBegin

xs/platforms/gecko/xsHost.c:664–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664void espInstrumentMachineBegin(txMachine *the, modTimerCallback instrumentationCallback, int count, char **names, char **units)
665{
666 the->instrumentationCallback = instrumentationCallback;
667 the->instrumentationTimer = modTimerAdd(0, 1000, instrumentationCallback, &the, sizeof(the));
668 modInstrumentationAdjust(Timers, -1);
669
670#ifdef mxDebug
671 the->onBreak = espDebugBreak;
672#endif
673 fxDescribeInstrumentation(the, count, names, units);
674}
675
676void espInstrumentMachineEnd(txMachine *the)
677{

Callers 1

mc_setupFunction · 0.70

Calls 2

modTimerAddFunction · 0.50

Tested by

no test coverage detected