def hook_threadResume(self, event, payload): thread = RuntimeModel.getCurrentThread(event) if thread.isBusyWaiting: payload.append((ExtraeEventTypes.RUNTIME_BUSYWAITING, RuntimeActivity.BusyWaiting))
def hook_exitBusyWait(self, event, payload): thread = RuntimeModel.getCurrentThread(event) thread.isBusyWaiting = 0 payload.append( (ExtraeEventTypes.RUNTIME_BUSYWAITING, RuntimeActivity.End))
def getEventStack(self, event): thread = RuntimeModel.getCurrentThread(event) stack = thread.eventStack assert (stack != None) return stack