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

Function modInstrumentMachineBegin

xs/platforms/mc/xsHosts.c:664–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662#endif
663
664void modInstrumentMachineBegin(xsMachine *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 = modDebugBreak;
672#endif
673 fxDescribeInstrumentation(the, count, names, units);
674}
675
676void modInstrumentMachineEnd(xsMachine *the)
677{

Callers 5

workerStartFunction · 0.85
modInstrumentationSetupFunction · 0.85
modInstrumentationSetupFunction · 0.85
xsHost.cFile · 0.85
modInstrumentationSetupFunction · 0.85

Calls 2

modTimerAddFunction · 0.50

Tested by

no test coverage detected