| 642 | } |
| 643 | |
| 644 | void 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 | |
| 664 | void espInstrumentMachineBegin(txMachine *the, modTimerCallback instrumentationCallback, int count, char **names, char **units) |
| 665 | { |
no test coverage detected