MCPcopy Create free account
hub / github.com/FastLED/FastLED / dump_thread_stacks

Function dump_thread_stacks

ci/util/test_env.py:110–124  ·  view source on GitHub ↗

Dump stack trace of the main thread and process tree info

()

Source from the content-addressed store, hash-verified

108
109
110def dump_thread_stacks() -> None:
111 """Dump stack trace of the main thread and process tree info"""
112 print("\n=== MAIN THREAD STACK TRACE ===")
113 for thread in threading.enumerate():
114 print(f"\nThread {thread.name}:")
115 if thread.ident is not None:
116 frame = sys._current_frames().get(thread.ident)
117 if frame:
118 traceback.print_stack(frame)
119 print("=== END STACK TRACE ===\n")
120
121 # Dump process tree information
122 print("\n=== PROCESS TREE INFO ===")
123 print(get_process_tree_info(os.getpid()))
124 print("=== END PROCESS TREE INFO ===\n")
125
126
127def setup_watchdog(timeout: int = 60) -> threading.Thread:

Callers 4

watchdog_timerFunction · 0.90
compile_mesonFunction · 0.90
_dump_blocking_stacksFunction · 0.90
watchdog_timerFunction · 0.85

Calls 3

get_process_tree_infoFunction · 0.85
printFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected