| 779 | } |
| 780 | |
| 781 | void 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 | |
| 804 | void espInstrumentMachineBegin(txMachine *the, modTimerCallback instrumentationCallback, int count, char **names, char **units) |
| 805 | { |
nothing calls this directly
no test coverage detected