module documentation
Utility for dumping memory usage stats. This is tailored to mypy and knows (a little) about which list objects are owned by particular AST nodes, etc.
Function | collect |
Return stats about memory use. |
Function | find |
Find additional objects referenced by objs and append them to objs. |
Function | print |
Undocumented |
Return stats about memory use. Return a tuple with these items: - Dict from object kind to number of instances of that kind - Dict from object kind to total bytes used by all instances of that kind