Memory Search

Library for Memory Trace Statistics in Python

The library uses tracemalloc as a core module, which is why it is only available for Python 3.4+

Functionalities

  • 🖥 Graphical interface for better visualization of RAM trace statistics

  • 👀 View the line of code that consumes the most memory

  • [coming soon] Compare memory usage between two functions

Installation

installation command with pip

Hello World

from memorysearch import MemorySearch


memory_search = MemorySearch(monitor="web", hostname="localhost", port=3000)


def myfunction(number: int):
    list_items = [i for i in range(number)]
    print(list_items)



memory_search.run(myfunction, 100)

GitHub

View Github