mirror of
https://github.com/yamadashy/repomix.git
synced 2026-02-03 11:33:39 +01:00
Relocated memory testing tools from benchmarks/memory/ to scripts/memory/ to better align with project structure conventions. Updated GitHub Actions workflow paths accordingly to maintain CI functionality.
34 lines
641 B
Markdown
34 lines
641 B
Markdown
# Memory Benchmarks
|
|
|
|
Memory usage monitoring tools for repomix.
|
|
|
|
## Setup
|
|
|
|
```bash
|
|
cd scripts/memory
|
|
npm install
|
|
```
|
|
|
|
## Quick Start
|
|
|
|
```bash
|
|
# Quick memory leak check
|
|
npm run leak:quick
|
|
|
|
# Detailed analysis
|
|
npm run leak:analyze
|
|
```
|
|
|
|
## Available Scripts
|
|
|
|
- `npm run leak:quick` - Fast leak detection (20 iterations)
|
|
- `npm run leak:watch` - Continuous monitoring
|
|
- `npm run leak:analyze` - Comprehensive analysis with reports
|
|
|
|
## Understanding Results
|
|
|
|
- **Heap Memory**: JavaScript objects (should stabilize)
|
|
- **RSS Memory**: Total process memory (watch for growth > 100%)
|
|
|
|
Look for consistent upward trends that indicate memory leaks.
|