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

Function espDebugBreak

xs/platforms/qca4020/xsHost.c:753–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751
752#ifdef mxDebug
753void espDebugBreak(txMachine* the, uint8_t stop)
754{
755 if (stop) {
756 the->DEBUG_LOOP = 1;
757 fxCollectGarbage(the);
758 modInstrumentationAdjust(GarbageCollectionCount, -1);
759 ((modTimerCallback)the->instrumentationCallback)(NULL, &the, sizeof(the));
760 }
761 else {
762 the->DEBUG_LOOP = 0;
763 modTimerReschedule(the->instrumentationTimer, 1000, 1000);
764 }
765}
766#endif
767
768void espInitInstrumentation(txMachine *the)

Callers

nothing calls this directly

Calls 2

fxCollectGarbageFunction · 0.85
modTimerRescheduleFunction · 0.50

Tested by

no test coverage detected