These are obviously not the same units and I believe the typo is in the file mprof.py and the unit should be corrected to "MiB" in both places. It is a small typo, but a since this is a memory profiler, I think it can cause a lot of headache to somebody.
Today a typo took some of my time.
The unit specified here is "Mb":
https://github.com/pythonprofilers/memory_profiler/blob/a99a3c3b3c2eb01c90f6e14ddfcb85b3e97f9885/mprof.py#L216
While the unit specified here is "MiB": https://github.com/pythonprofilers/memory_profiler/blob/a99a3c3b3c2eb01c90f6e14ddfcb85b3e97f9885/memory_profiler.py#L327
These are obviously not the same units and I believe the typo is in the file
mprof.py
and the unit should be corrected to "MiB" in both places. It is a small typo, but a since this is a memory profiler, I think it can cause a lot of headache to somebody.