Development Team/Performance: Difference between revisions
New page: Just a quick dump of the snippets I use for profiling: First use a system-wide profiler like sysprof Next, profile python code, open the output with kcachegrind: import os import cPro... |
m moved Walter is a wanker 12/Performance to Development Team/Performance over redirect: revert |
||
| (6 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>{{ GoogleTrans-en | es =show | bg =show | zh-CN =show | zh-TW =show | hr =show | cs =show | da =show | nl =show | fi =show | fr =show | de =show | el =show | hi =show | it =show | ja =show | ko =show | no =show | pl =show | pt =show | ro =show | ru =show | sv =show }}</noinclude> | |||
Just a quick dump of the snippets I use for profiling: | Just a quick dump of the snippets I use for profiling: | ||
| Line 30: | Line 31: | ||
for obj in gc.get_objects(): | for obj in gc.get_objects(): | ||
if hasattr(obj, '__class__') and obj.__class__.__name__ | if hasattr(obj, '__class__') and 'ChooserListView' in obj.__class__.__name__: | ||
logging.debug(obj) | logging.debug(obj) | ||