{"categories":[{"label":"Debuggers","url":"https://skillfed.io/packages/category/software-development-debuggers"}],"enrichment":{"capability":"Memray is a memory profiler for Python that traces every function call to track memory allocations across Python code, native extensions, and the interpreter itself, generating reports like flame graphs and tables to analyze memory usage.","skillfed_tags":["profiling","memory-analysis","debugging"],"use_cases":["Identify the root cause of high memory consumption in a long-running Python application","Detect memory leaks by comparing allocation patterns before and after suspected leak code","Find hotspots in code that cause excessive allocations and optimize them","Profile applications that use C/C++ extensions to understand memory behavior across language boundaries","Analyze test suite memory usage with pytest-memray plugin to catch regressions"],"what_it_does":"Memray is a memory profiler that instruments Python applications to capture every memory allocation, including calls into native C/C++ libraries. Unlike sampling profilers, it traces the full call stack, making it possible to pinpoint exactly where memory is being allocated and consumed. It works as both a command-line tool and a library, supporting Python threads and native threads in extensions.\n\nThe profiler generates multiple report formats\u2014flame graphs, HTML tables, terminal trees, and summaries\u2014to help developers analyze memory usage patterns, find leaks, and identify allocation hotspots. It's designed for production-like profiling with minimal overhead on Python code, though native code tracking incurs additional cost and can be toggled on demand.","worth_installing":"Yes, if you develop on Linux or macOS and need to profile memory usage in Python applications. Memray's full call-stack tracing and native code support make it more precise than sampling profilers for finding leaks and allocation hotspots. Install friction is moderate (C extension, platform-limited), but prebuilt wheels and active maintenance reduce friction. No security vulnerabilities reported. Not suitable for Windows development."},"id":"memray","links":{"html":"https://skillfed.io/packages/memray","md":"https://skillfed.io/packages/memray.md","pypi":"https://pypi.org/project/memray/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-07","license_spdx":null,"license_treatment":"permissive","name":"memray","python_support":"supports_current","summary":"A memory profiler for Python applications"},"popularity":{"monthly_downloads":16122500,"position":1160,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.20.0"}
