Metadata-Version: 2.4
Name: dargslan-memory-profiler
Version: 1.0.0
Summary: Linux memory profiler — per-process RSS, shared memory, swap usage, and memory leak detection
Author-email: Dargslan <info@dargslan.com>
License: MIT
Project-URL: Homepage, https://dargslan.com
Project-URL: Documentation, https://dargslan.com/blog
Project-URL: Repository, https://github.com/Dargslan
Project-URL: Free Cheat Sheets, https://dargslan.com/cheat-sheets
Project-URL: Linux & DevOps Books, https://dargslan.com/books
Keywords: memory,profiler,ram,rss,swap,linux,sysadmin,devops
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: System :: Monitoring
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# dargslan-memory-profiler

**Linux Memory Profiler** — Per-process RSS, shared memory, swap usage, grouped by application. Zero external dependencies.

[![PyPI version](https://img.shields.io/pypi/v/dargslan-memory-profiler)](https://pypi.org/project/dargslan-memory-profiler/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Installation

```bash
pip install dargslan-memory-profiler
```

## CLI Usage

```bash
dargslan-memprof report        # Full memory profile
dargslan-memprof system        # System memory overview
dargslan-memprof top -n 30     # Top processes by RSS
dargslan-memprof grouped       # Memory by application name
dargslan-memprof shm           # Shared memory segments
dargslan-memprof json          # JSON output
```

## Python API

```python
from dargslan_memory_profiler import MemoryProfiler
mp = MemoryProfiler()
sys_mem = mp.get_system_memory()
top_procs = mp.get_all_processes(limit=10)
mp.print_report()
```

## More from Dargslan

- [Dargslan.com](https://dargslan.com) — Linux & DevOps eBook Store
- [Free Cheat Sheets](https://dargslan.com/cheat-sheets)
- [Blog & Tutorials](https://dargslan.com/blog)

## License

MIT — see [LICENSE](LICENSE)
