pythonprofilers / memory_profiler

Monitor Memory usage of Python code
http://pypi.python.org/pypi/memory_profiler
Other
4.39k stars 380 forks source link

Inconsistent result between line profiler and plot #372

Open SergioG-M opened 2 years ago

SergioG-M commented 2 years ago

Hi, I am trying to profile a simple function that loads a big csv files into pandas. After loading, pandas memory_usage shows that its size is 6.8GB

Screenshot 2022-10-31 at 15 43 50

However, if I run the profiler if says less than 1GB

Screenshot 2022-10-31 at 15 49 24

But, running mprof plot afterwards the plot shows more than 6GB (although still less than pandas).

Screenshot 2022-10-31 at 15 46 11

Any idea what is happening?