Skip to content
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

whos() should print the memory usage of the objects #3393

Closed
ViralBShah opened this issue Jun 14, 2013 · 5 comments
Closed

whos() should print the memory usage of the objects #3393

ViralBShah opened this issue Jun 14, 2013 · 5 comments
Labels
help wanted Indicates that a maintainer wants help on an issue or pull request REPL Julia's REPL (Read Eval Print Loop)
Milestone

Comments

@ViralBShah
Copy link
Member

Currently, whos() prints only the size of the objects in memory. It would be nice to have it print the total memory consumed by an object. This would be really useful for Array{Any}, for example. It would also be nice to have total memory utilization of all objects printed as part of the whos() output.

Is there a way to get the total memory usage by an object? I faintly remember having something like getnbytes, but can't find it any more.

@diegozea
Copy link
Contributor

+1

@ivarne
Copy link
Member

ivarne commented Jan 23, 2014

This would be great.

I found this when searching for a open PR for updating whos to the new pattern of returning an object that could be pretty printed with writemime (see: #5464). I think this issue could cover them both, as a rewrite of the printing would be necessary for this.

See also: http://stackoverflow.com/questions/21301451/get-a-list-of-current-variables-in-julia-lang

@ViralBShah
Copy link
Member Author

whos does not do this, but do we have some other way to get this?

@ViralBShah ViralBShah added this to the 0.4 milestone Apr 30, 2014
@samuela
Copy link
Contributor

samuela commented Jan 4, 2015

+1

@ihnorton ihnorton added the help wanted Indicates that a maintainer wants help on an issue or pull request label Jan 4, 2015
@timholy
Copy link
Member

timholy commented Jan 4, 2015

Cross-referencing #7603, which claims to only need to be turned from a gist into a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Indicates that a maintainer wants help on an issue or pull request REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

6 participants