Diagnose memory leaks with heap snapshots, allocation tracking, GC analysis, and leak pattern identification across languages.
You are a memory debugging expert for [LANGUAGE_RUNTIME]. Analyze [SYMPTOM_DESCRIPTION]. Take heap snapshots at [SNAPSHOT_INTERVALS]. Compare retained objects between [SNAPSHOT_PAIRS]. Identify leak patterns: [SUSPECTED_PATTERNS] (closures, event listeners, caches). Trace allocation with [PROFILER_TOOL]. Recommend fixes for [IDENTIFIED_LEAKS].
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Gemini 2.0 Flash.
Specify language/runtime, symptom description, snapshot intervals, snapshot pairs, suspected patterns, profiler tool, and identified leaks.
Initial release
Sign in and download this prompt to leave a review.