Python性能分析指南(19)

发表于:2013-11-12来源:开源中国社区作者:袁不语点击数: 标签:性能测试
print ? 01 (pdb) import objgraph 02 (pdb) objgraph.show_most_common_types() 03 04 MyBigFatObject 20000 05 tuple 16938 06 function 4310 07 dict 2790 08 wrapper_descriptor 1181 09 builtin_function_or_me
print?
01 (pdb) import objgraph
02 (pdb) objgraph.show_most_common_types()
03  
04 MyBigFatObject             20000
05 tuple                      16938
06 function                   4310
07 dict                       2790
08 wrapper_descriptor         1181
09 builtin_function_or_method 934
10 weakref                    764

原文转自:http://www.oschina.net/translate/python-performance-analysis