--- linuxsampler/trunk/src/scriptvm/tree.h 2017/05/26 11:06:18 3220 +++ linuxsampler/trunk/src/scriptvm/tree.h 2017/05/26 18:30:42 3221 @@ -680,9 +680,11 @@ ArrayList stack; int stackFrame; int suspendMicroseconds; + size_t instructionsCount; ExecContext() : - status(VM_EXEC_NOT_RUNNING), stackFrame(-1), suspendMicroseconds(0) {} + status(VM_EXEC_NOT_RUNNING), stackFrame(-1), suspendMicroseconds(0), + instructionsCount(0) {} virtual ~ExecContext() {} @@ -715,6 +717,10 @@ if (polyphonicIntMemory.empty()) return; memset(&polyphonicIntMemory[0], 0, polyphonicIntMemory.size() * sizeof(int)); } + + size_t instructionsPerformed() const OVERRIDE { + return instructionsCount; + } }; } // namespace LinuxSampler