{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/2"}],"enrichment":{"capability":"Profiles memory consumption line-by-line in Python functions and tracks overall process memory usage over time using the psutil module.","skillfed_tags":["profiling","memory-analysis","debugging"],"use_cases":["Identify which lines of code in a function consume the most memory by decorating with @profile and running with -m memory_profiler.","Track overall memory usage of a long-running Python script over time using mprof run and mprof plot to visualize trends.","Detect memory leaks by monitoring whether memory usage grows unexpectedly during process execution.","Profile multiprocessing applications to see memory consumption of parent and child processes separately or combined.","Generate memory usage reports with plots for performance analysis and documentation."],"what_it_does":"Memory Profiler is a Python module for analyzing memory consumption at both the process level and the line-by-line level within functions. It provides two main modes: line-by-line profiling (via the @profile decorator or -m memory_profiler flag) that shows memory usage and increments for each line of code, and time-based profiling (via the mprof command-line tool) that records overall memory usage over time and can generate plots. It depends on psutil for system-level memory monitoring.\n\nThe package is designed for developers and researchers who need to understand where memory is being allocated and freed in their Python programs. It can track multiprocessing contexts, plot memory trends, and identify potential memory leaks. However, the package is no longer actively maintained, meaning bug fixes and compatibility updates are unlikely to be forthcoming.","worth_installing":"Yes, with caution. The package is stable and widely used (top 5000 PyPI), has low install friction, and carries no known vulnerabilities. However, it is dormant with no active maintenance. Install it if you need line-by-line memory profiling and can accept that bugs or compatibility issues will not be fixed by the maintainer. Consider it a mature, read-only tool rather than an actively developed project."},"id":"memory-profiler","links":{"html":"https://skillfed.io/packages/memory-profiler","md":"https://skillfed.io/packages/memory-profiler.md","pypi":"https://pypi.org/project/memory-profiler/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-11-15","license_spdx":null,"license_treatment":"permissive","name":"memory-profiler","python_support":"supports_current","summary":"A module for monitoring memory usage of a python program"},"popularity":{"monthly_downloads":8236074,"position":1643,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.61.0"}
