bloomberg / memray

Memray is a memory profiler for Python
https://bloomberg.github.io/memray/
Apache License 2.0
13.36k stars 397 forks source link

Heap size does not change after function call. #567

Closed paniabhisek closed 8 months ago

paniabhisek commented 8 months ago

Changes I did to memray/docs/example/fibonacci/fib.py

  1. n to 10_000 due to segmentation fault.
  2. Added sleep(2) after run()

Next commands:

PYTHONMALLOC=malloc memray run --trace-python-allocators fib.py
memray flamegraph --temporal memray-fib.py.<id>.bin

But I do not see any deallocation of heap size. What is the reason?

This is also shown as memory leak if I give --leaks option