Memory Profiler CLI – ChatGPT prompt
More roles · 75 words
This prompt creates a ChatGPT response that outlines how to build a C‑based memory profiler CLI tool with features like process attachment, heap analysis, leak detection, visualization, reporting, filtering, snapshot comparison, and interactive command‑line interface. It helps developers planning a performance‑monitoring utility.
The prompt
Develop a memory profiling tool in C for analyzing process memory usage. Implement process attachment with minimal performance impact. Add heap analysis with allocation tracking. Include memory leak detection with stack traces. Implement memory usage visualization with detailed statistics. Add custom allocator hooking for detailed tracking. Include report generation in multiple formats. Implement filtering options for noise reduction. Add comparison functionality between snapshots. Include command-line interface with interactive mode. Implement signal handling for clean detachment.
Source: prompts.chat (CC0).