中文译文
用C开发一个用于分析进程内存使用的内存分析工具。以最小性能影响实现进程附加。添加带分配跟踪的堆分析。包含带栈回溯的内存泄漏检测。实现带详细统计信息的内存使用可视化。添加自定义分配器挂钩以实现详细跟踪。包含多种格式的报告生成。实现用于降噪的过滤选项。添加快照之间的比较功能。包含带交互模式的命令行界面。实现信号处理以实现干净分离。
English original
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.