| 190 | } |
| 191 | |
| 192 | void espSampleInstrumentation(modTimer timer, void *refcon, int refconSize) |
| 193 | { |
| 194 | txInteger values[espInstrumentCount]; |
| 195 | int what; |
| 196 | xsMachine *the = *(xsMachine **)refcon; |
| 197 | |
| 198 | // xSemaphoreTake(gInstrumentMutex, portMAX_DELAY); |
| 199 | |
| 200 | for (what = kModInstrumentationPixelsDrawn; what <= (kModInstrumentationSlotHeapSize - 1); what++) |
| 201 | values[what - kModInstrumentationPixelsDrawn] = modInstrumentationGet_(the, what); |
| 202 | |
| 203 | #if kModInstrumentationHasTurns |
| 204 | if (values[kModInstrumentationTurns - kModInstrumentationPixelsDrawn]) |
| 205 | values[kModInstrumentationTurns - kModInstrumentationPixelsDrawn] -= 1; // ignore the turn that generates instrumentation |
| 206 | #endif |
| 207 | |
| 208 | fxSampleInstrumentation(the, espInstrumentCount, values); |
| 209 | |
| 210 | modInstrumentationSet(PixelsDrawn, 0); |
| 211 | modInstrumentationSet(FramesDrawn, 0); |
| 212 | modInstrumentationSet(PocoDisplayListUsed, 0); |
| 213 | modInstrumentationSet(PiuCommandListUsed, 0); |
| 214 | #if kModInstrumentationHasTurns |
| 215 | modInstrumentationSet(Turns, 0); |
| 216 | #endif |
| 217 | modInstrumentMachineReset(the); |
| 218 | |
| 219 | // xSemaphoreGive(gInstrumentMutex); |
| 220 | } |
| 221 | |
| 222 | #endif |
| 223 |
nothing calls this directly
no test coverage detected