A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2003-September/200151.html below:

Memory profiling

Memory profiling Memory profilingMichael Hudson mwh at python.net
Thu Sep 25 07:23:40 EDT 2003
Rune Froysa <rune.froysa at usit.uio.no> writes:

> Does Python provide any tools that can help in determining where the
> memory is used?

*Memory*, no.  Especially in a debug build, there are tools for
finding out where the objects are, though.

> Ideally, I would like to see a tool that can list all objects by
> memory-usage, but any tool that can return the number of bytes used
> by an arbitrary object would be of great help.  Even something that
> could find all allocated dicts&lists and return their size+name
> would help.

In a debug build, look at sys.getobjects.  In a recent release build,
look at gc.get_objects.

Cheers,
mwh

-- 
  <arigo> something happens, what I'm not exactly sure.
                                                 -- PyPy debugging fun


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4