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

Function espDebugBreak

xs/platforms/gecko/xsHost.c:620–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618static modTimer gInstrumentationTimer;
619
620void espDebugBreak(txMachine* the, uint8_t stop)
621{
622 if (stop) {
623 fxCollectGarbage(the);
624 the->garbageCollectionCount -= 1;
625 espSampleInstrumentation(NULL, NULL, 0);
626 }
627 else
628 modTimerReschedule(gInstrumentationTimer, 1000, 1000);
629}
630
631void espInitInstrumentation(txMachine *the)
632{

Callers

nothing calls this directly

Calls 3

fxCollectGarbageFunction · 0.85
espSampleInstrumentationFunction · 0.70
modTimerRescheduleFunction · 0.50

Tested by

no test coverage detected