Commit graph

1 commit

Author SHA1 Message Date
jedarden
f824c2e9f7 feat(bf-5r8a): add memoryProfiler module for real-time memory profiling
Implements the MemoryProfiler class with:
- Real-time memory usage tracking and trend analysis
- Baseline/diff functionality for leak detection
- V8 heap snapshot capture to disk
- In-memory snapshot ring buffer (max 100)
- Periodic capture support with configurable intervals

Exports getMemoryProfiler() singleton used by server.ts endpoints:
- GET /api/memory/stats
- POST /api/memory/capture
- GET /api/memory/diff
- POST /api/memory/baseline
- POST /api/memory/heap-snapshot
- GET /api/memory/snapshots

Resolves bd-ch6.7 memory profiling plan.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-02 14:29:47 -04:00