프롬프트 도감 › No.1554
메모리 사용량 분석 도구 만들기
Memory Profiler CLI
C언어로 프로그램의 메모리 사용량을 살펴보는 명령어 도구를 만들어 달라고 해요. 메모리 사용 추적, 누수(안 돌려준 메모리) 찾기, 상태 비교, 보고서 출력이 들어가요.
이럴 때 시스템 프로그래밍 공부, 성능 분석 도구 설계, 메모리 누수 찾기
도구 ChatGPT · Claude · Gemini
프롬프트
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.
팁
- 대상 운영체제(리눅스·맥)를 먼저 알려 주세요
- 핵심 기능부터 나눠서 단계별로 요청하세요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: f.