()
| 354 | |
| 355 | # Create worker thread |
| 356 | def worker_thread(): |
| 357 | trace.trace_set_thread_info("worker_thread") |
| 358 | trace.trace_slice_start("worker_task", rid) |
| 359 | time.sleep(0.001) # Simulate work |
| 360 | trace.trace_slice_end("worker_task", rid) |
| 361 | |
| 362 | thread = threading.Thread(target=worker_thread) |
| 363 | thread.start() |