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

Function espSampleInstrumentation

xs/platforms/qca4020/xsHost.c:781–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779}
780
781void espSampleInstrumentation(modTimer timer, void *refcon, int refconSize)
782{
783 txInteger values[espInstrumentCount];
784 int what;
785 xsMachine *the = *(xsMachine **)refcon;
786
787 for (what = kModInstrumentationPixelsDrawn; what <= kModInstrumentationSystemFreeMemory; what++)
788 values[what - kModInstrumentationPixelsDrawn] = modInstrumentationGet_(the, what);
789
790 fxSampleInstrumentation(the, espInstrumentCount, values);
791
792 modInstrumentationSet(PixelsDrawn, 0);
793 modInstrumentationSet(FramesDrawn, 0);
794 modInstrumentationSet(PocoDisplayListUsed, 0);
795 modInstrumentationSet(PiuCommandListUsed, 0);
796 modInstrumentationSet(NetworkBytesRead, 0);
797 modInstrumentationSet(NetworkBytesWritten, 0);
798#if ESP32
799 modInstrumentationSet(SPIFlashErases, 0);
800#endif
801 espInstrumentMachineReset(the);
802}
803
804void espInstrumentMachineBegin(txMachine *the, modTimerCallback instrumentationCallback, int count, char **names, char **units)
805{

Callers

nothing calls this directly

Calls 3

modInstrumentationGet_Function · 0.85
fxSampleInstrumentationFunction · 0.85

Tested by

no test coverage detected