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

Function espSampleInstrumentation

xs/platforms/gecko/xsHost.c:644–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644void espSampleInstrumentation(modTimer timer, void *refcon, int refconSize)
645{
646 txInteger values[espInstrumentCount];
647 int what;
648 xsMachine *the = *(xsMachine **)refcon;
649
650 for (what = kModInstrumentationPixelsDrawn; what <= kModInstrumentationSystemFreeMemory; what++)
651 values[what - kModInstrumentationPixelsDrawn] = modInstrumentationGet_(the, what);
652
653 fxSampleInstrumentation(the, espInstrumentCount, values);
654
655 modInstrumentationSet(PixelsDrawn, 0);
656 modInstrumentationSet(FramesDrawn, 0);
657 modInstrumentationSet(PocoDisplayListUsed, 0);
658 modInstrumentationSet(PiuCommandListUsed, 0);
659 modInstrumentationSet(NetworkBytesRead, 0);
660 modInstrumentationSet(NetworkBytesWritten, 0);
661 espInstrumentMachineReset(the);
662}
663
664void espInstrumentMachineBegin(txMachine *the, modTimerCallback instrumentationCallback, int count, char **names, char **units)
665{

Callers 1

espDebugBreakFunction · 0.70

Calls 3

modInstrumentationGet_Function · 0.85
fxSampleInstrumentationFunction · 0.85

Tested by

no test coverage detected