Lines Matching full:event
62 event = msg.event
63 # Compute the time difference since the last event message.
71 if event.name in [
82 cpu = event.payload_field.get("cpu", None)
83 thread_id = event.payload_field.get("thread_id", None)
84 thread_name = event.payload_field.get("name", None)
87 if event.name in ['thread_switched_out', 'thread_switched_in'] and cpu is not None:
93 print(f"{dt} (+{diff_s:.6f} s): {event.name}: {thread_name} {cpu_string}")
95 print(f"{dt} (+{diff_s:.6f} s): {event.name}: {thread_id} {cpu_string}")
97 print(f"{dt} (+{diff_s:.6f} s): {event.name}")
99 if event.name in ['thread_switched_out', 'thread_switched_in']:
109 if event.name in ['thread_switched_out']:
116 elif event.name in ['thread_switched_in']:
121 elif event.name in ['thread_info']:
122 stack_size = event.payload_field['stack_size']
123 print(f"{dt} (+{diff_s:.6f} s): {event.name} (Stack size: {stack_size})")
124 elif event.name in ['start_call', 'end_call']:
125 if event.payload_field['id'] == 39:
127 elif event.payload_field['id'] in [37, 38]:
131 … print(c + f"{dt} (+{diff_s:.6f} s): {event.name} {event.payload_field['id']}" + Fore.RESET)
132 elif event.name in ['semaphore_init', 'semaphore_take', 'semaphore_give']:
134 … print(c + f"{dt} (+{diff_s:.6f} s): {event.name} ({event.payload_field['id']})" + Fore.RESET)
135 elif event.name in ['mutex_init', 'mutex_take', 'mutex_give']:
137 … print(c + f"{dt} (+{diff_s:.6f} s): {event.name} ({event.payload_field['id']})" + Fore.RESET)
139 elif event.name in ['named_event']:
140 name = event.payload_field['name']
141 arg0 = event.payload_field['arg0']
142 arg1 = event.payload_field['arg1']
143 print(f"{dt} (+{diff_s:.6f} s): {event.name} (name: {name}, arg0: {arg0} arg1: {arg1})")
145 print(f"{dt} (+{diff_s:.6f} s): {event.name}")