[issue10725] Better cache instrumentation

Nick Coghlan report at bugs.python.org
Sat Dec 18 07:11:39 CET 2010

Nick Coghlan <ncoghlan at gmail.com> added the comment:

Indeed, getsizeof() on containers only gives the amount of memory consumed by the container itself (this can be difficult to figure out externally for potentially sparse containers like dicts), but leaves the question of the size of the referenced objects open.

Exposing the result of sys.getsizeof() on the cache may not be a bad idea, but the question would be which use cases are handled by that additional information which aren't adequately covered by the simple count of the cache entries.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list