Skip to content

Commit 2d7e614

Browse files
committed
Add tests for child process profiling
The test suite covers the get_child_pids C function with both recursive and non-recursive enumeration, the is_python_process detection helper, the ChildProcessMonitor lifecycle, and end-to-end CLI tests with --children for both attach and run modes. Tests use short-lived subprocesses with controlled lifecycles and polling-based synchronization rather than fixed sleeps to keep runtime reasonable. Resource cleanup is handled through reap_children and explicit process termination in finally blocks.
1 parent 8969ce6 commit 2d7e614

1 file changed

Lines changed: 1076 additions & 0 deletions

File tree

0 commit comments

Comments
 (0)