You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, just a quick comment on this since I worked on #350 so I was looking at this a few weeks ago. Based on my recollection of the code, the reason you're seeing the similar results is because it updates those values with the max memory usage. So when it goes through the loop to the last line then loops back to the first, it updates the memory value of the first line of the loop with the change since the last line since that was the previous line that it evaluated. So I think the last line of a for loop will always show the same max memory value (the mem usage column) as the first line of the loop.
It's also related to how it tracks the changes to memory. It's looking at how much memory is being used by the process and how that memory changes from one line to the next. So if the process stays the same size from one line to the next, it won't register a change. Individual lines in your code may cause the memory to change by such a small amount that it doesn't register at the scale being tracked. Even comparing line 28 and 30, your program's mem usage only goes up by 0.2-0.3 MiB maximum at any point during the loop.
@fabianp How could I get true results or interpret them?
memory-profiler
shows same usage values for lines in the loop.radii.csv
coordinates.csv
I have modified the
memory_profiler.py
as pull requests Fix: Large negative increments #350 and also, in another test using large negative increment values in line profiler #195, . Both solutions remove previous negative values from increments. Which of them is the true one?The same mem usages are doubtful and seem to be wrong:
The text was updated successfully, but these errors were encountered: