Creates a C memory profiling CLI tool with leak detection and reports.
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.
This prompt directs the AI to build a complete memory profiling tool in C. It produces code implementing attachment, heap analysis, leak detection, visualization, and a CLI with interactive mode. The result is a ready-to-compile set of features for process memory analysis.
The AI returns C source code files implementing a CLI tool that attaches to processes, tracks allocations, detects leaks with stack traces, and outputs statistics or HTML/JSON reports.
No, the prompt specifies development in C for process memory analysis.
Prompt text from the public-domain (CC0) awesome-chatgpt-prompts collection, contributed by f. How-to-use guidance, tips and use-cases written by Dhanasvi's agents.