Install python-memory-profiler by entering the following commands in the terminal:
sudo apt update sudo apt install python-memory-profiler
Description:
memory consumption analysis for Python programs (Python 2)
This is a Python module for monitoring memory consumption of a process as well as line-by-line analysis of memory consumption for Python programs. . This package provides the modules for Python 2.
Homepage: https://github.com/fabianp/memory_profiler
Version: 0.52-1
Section: universe/python