docs/plans/memory-diagnostics-reference-design.md
Issue #3000 tracks memory and performance diagnostics for long-running Qwen Code sessions. The first PR should establish a small, low-risk diagnostic surface before adding heavier profiling or retention changes.
The design is reference-first:
smaps_rollup, and leak hints.Add a /doctor memory diagnostic path that captures a single point-in-time
snapshot:
process.memoryUsage()process.resourceUsage()/proc/self/fd is availablesmaps_rollup when availableThis command should be cheap enough to run in normal sessions and safe on platforms where Linux-only probes are unavailable.
This PR intentionally does not:
Those are follow-up PRs after the diagnostic baseline exists.