Gud Boi
|
7b14fdcd96
|
Add `tractor_diag`(nosis) xontrib with aliases
Xonsh xontrib providing three diagnostic commands
for tractor development / hang investigation:
- `pytree <pid|pat>` — psutil-backed proc tree with severity-bucketed
output (zombies > orphans > live), tree-depth markers, zombie-safe
rendering.
- `hung-dump <pid|pat>` — kernel `wchan`/`stack` + `py-spy dump
--locals` per descendant, sudo-cred caching upfront, pgrep fallback
when psutil absent.
- `bindspace-scan [<dir>]` — scan UDS bindspace for orphaned
`<name>@<pid>.sock` files whose binder pid is dead, emit `rm`
one-liner for cleanup.
(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
|
2026-05-06 14:07:24 -04:00 |