-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Profiling memory usage #4442
Comments
I always wanted something like this when I used Matlab. My general strategy has been to keep increasing the problem size until the program crashes and hopefully tells me where in the code it ran out of memory. |
For useful memory profiling, possibly the simplest thing would be to sample both the number of objects, and total memory allocated for the top N objects at each sampling. This information can then be used to build further visualisation and analytical tools. |
@ViralBShah Just lurking around in the issue tracker. MATLAB can profile memory with |
@juhljr Thanks. I did not know about the memory profiler in matlab. Fortunately, I no longer have access to matlab - but I would have loved to try it out! |
This was closed by #7464. |
In a couple of talks I gave recently, the question of profiling memory usage came up. That got me thinking of something that could be very useful if it existed. What if we also capture the total memory usage when the sampling profiler runs, and say also the top 5 objects by memory consumption?
This data can then be analyzed and plotted to get a very good idea of the memory behaviour of the program. I know there are a lot of ifs and buts, but I thought I would post it here to see what others things.
Cc: @timholy
The text was updated successfully, but these errors were encountered: