コード例 #1
0
 def hook_threadResume(self, event, payload):
     thread = RuntimeModel.getCurrentThread(event)
     if thread.isBusyWaiting:
         payload.append((ExtraeEventTypes.RUNTIME_BUSYWAITING,
                         RuntimeActivity.BusyWaiting))
コード例 #2
0
 def hook_exitBusyWait(self, event, payload):
     thread = RuntimeModel.getCurrentThread(event)
     thread.isBusyWaiting = 0
     payload.append(
         (ExtraeEventTypes.RUNTIME_BUSYWAITING, RuntimeActivity.End))
コード例 #3
0
 def getEventStack(self, event):
     thread = RuntimeModel.getCurrentThread(event)
     stack = thread.eventStack
     assert (stack != None)
     return stack