{ "info": { "author": "Denis Ryzhkov", "author_email": "denisr@denisr.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Usage::\n\n pip install mem_top\n from mem_top import mem_top\n\n # From time to time:\n logging.debug(mem_top()) # Or just print().\n\n # Notice which counters keep increasing over time - they are the suspects.\n\nCounters:\n\n* refs - number of direct references from this object to other objects, like keys and values of dict\n* bytes - size of this object in bytes\n* types - number of objects of this type still kept in memory after garbage collection\n\nReal life example::\n\n refs:\n 144997 defaultdict(, { {'.:..............:.......': {...\n 1578 {...\n 968 {...\n 968 {...\n 968 {...\n 767 [...\n 726 {...\n 608 {...\n\n types:\n 292499 \n 217912 \n 72702 \n 72702 \n 12340