-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add baseline /doctor memory diagnostics #4179
Copy link
Copy link
Closed
Labels
category/cliCommand line interface and interactionCommand line interface and interactionscope/commandsCommand implementationCommand implementationscope/memoryMemory and context managementMemory and context managementscope/memory-usageMemory consumptionMemory consumptiontype/feature-requestNew feature or enhancement requestNew feature or enhancement request
Metadata
Metadata
Assignees
Labels
category/cliCommand line interface and interactionCommand line interface and interactionscope/commandsCommand implementationCommand implementationscope/memoryMemory and context managementMemory and context managementscope/memory-usageMemory consumptionMemory consumptiontype/feature-requestNew feature or enhancement requestNew feature or enhancement request
Parent
Part of #3000.
Goal
Add the first, low-risk memory diagnostic entry point:
/doctor memoryshould emit a compact baseline report that users can paste into OOM / long-session memory reports before attempting heavier heap snapshots.Scope
/doctor memorycommand wiring.rssheapTotalheapUsedexternalarrayBuffersNon-goals for this first step
Follow-up slices
/doctor memory --exportto writediagnostics.json./doctor memory --heap/ hidden/heapdump, writing diagnostics first and heap snapshot second.Acceptance criteria
/doctor memoryworks in the interactive CLI.