Skip to main content

Linux memory profiler — per-process RSS, shared memory, swap usage, and memory leak detection

Project description

dargslan-memory-profiler

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

PyPI version License: MIT

Installation

pip install dargslan-memory-profiler

CLI Usage

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

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

License

MIT — see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dargslan_memory_profiler-1.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dargslan_memory_profiler-1.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file dargslan_memory_profiler-1.0.0.tar.gz.

File metadata

  • Download URL: dargslan_memory_profiler-1.0.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dargslan_memory_profiler-1.0.0.tar.gz
Algorithm Hash digest
SHA256 42a1a2b8c1d5fccb5da7341d6b9f60b0b473a69f4d832d2506eae5530ffc5efe
MD5 6710ed2685d20a6a99f9c6cc48b7774a
BLAKE2b-256 55c2fc91cc261b1bcc0d3d2f1874bffdbb71059be0006261bb64045521f7c653

See more details on using hashes here.

File details

Details for the file dargslan_memory_profiler-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dargslan_memory_profiler-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b296bb8b946fc0881e0a59d24a6cc11f0e146cde315167d83bfef8b23c6c8ff
MD5 2b6675dab9becd720397eb781c485023
BLAKE2b-256 a4e29f3f8adfc51e3c6beb22a2061bc17b8c2b278430ffa2a725ea29904c82ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page