Skip to content

Instantly share code, notes, and snippets.

@orf
Last active May 25, 2023 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orf/d837bae40f372e83c3af358cac8fc15c to your computer and use it in GitHub Desktop.
Save orf/d837bae40f372e83c3af358cac8fc15c to your computer and use it in GitHub Desktop.
ncalls tottime percall cumtime percall filename:lineno(function)
11288707 77.641 0.000 135.041 0.000 __init__.py:494(deconstruct)
23155 58.403 0.003 58.473 0.003 {method 'execute' of 'psycopg2.extensions.cursor' objects}
1203317 33.670 0.000 50.113 0.000 registry.py:251(get_containing_app_config)
256688891/255455332 30.533 0.000 46.317 0.000 {built-in method builtins.getattr}
8053925/3306148 29.478 0.000 66.269 0.000 options.py:850(_get_fields)
52263890/82278 27.471 0.000 58.095 0.001 copy.py:128(deepcopy)
21271138 25.510 0.000 26.221 0.000 options.py:821(_expire_cache)
4869364 25.295 0.000 33.268 0.000 state.py:719(__init__)
11499977 23.497 0.000 34.723 0.000 __init__.py:180(__init__)
343702326 21.558 0.000 21.558 0.000 {method 'startswith' of 'str' objects}
ncalls tottime percall cumtime percall filename:lineno(function)
343702326 21.558 0.000 21.558 0.000 {method 'startswith' of 'str' objects}
337075659 14.657 0.000 14.657 0.000 {method 'get' of 'dict' objects}
256688891/255455332 30.533 0.000 46.317 0.000 {built-in method builtins.getattr}
136194133/136192032 17.654 0.000 23.886 0.000 {built-in method builtins.isinstance}
123055651/123054091 20.944 0.000 21.342 0.000 {built-in method builtins.hasattr}
65718523 2.311 0.000 2.311 0.000 {built-in method builtins.id}
52263890/82278 27.471 0.000 58.095 0.001 copy.py:128(deepcopy)
44211375 1.690 0.000 1.690 0.000 copy.py:182(_deepcopy_atomic)
34544129 1.539 0.000 1.539 0.000 {method 'append' of 'list' objects}
31648996/31644553 6.627 0.000 6.700 0.000 {built-in method builtins.setattr}
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 1072.916 1072.916 prof_util.py:14(execfile)
13865/1 0.117 0.000 1072.915 1072.915 {built-in method builtins.exec}
1 0.000 0.000 1072.915 1072.915 manage.py:1(<module>)
1 0.000 0.000 1070.519 1070.519 __init__.py:443(execute_from_command_line)
1 0.000 0.000 1070.519 1070.519 __init__.py:357(execute)
1 0.000 0.000 1063.129 1063.129 base.py:385(run_from_argv)
1 0.000 0.000 1063.128 1063.128 management_commands.py:79(execute)
1 0.000 0.000 1063.128 1063.128 base.py:421(execute)
1 0.000 0.000 1063.128 1063.128 migrate.py:15(handle)
1 0.004 0.004 1063.128 1063.128 base.py:90(wrapped)
1 0.001 0.001 1063.123 1063.123 migrate.py:93(handle)
1 0.001 0.001 1048.874 1048.874 executor.py:94(migrate)
1 0.023 0.023 1048.389 1048.389 executor.py:147(_migrate_all_forwards)
4956 1.210 0.000 1048.339 0.212 executor.py:236(apply_migration)
4956 0.808 0.000 998.928 0.202 migration.py:92(apply)
17232 0.848 0.000 793.151 0.046 state.py:651(render_multiple)
8119 0.024 0.000 782.921 0.096 state.py:397(reload_model)
1144599 12.569 0.000 782.544 0.001 state.py:930(render)
8150 0.587 0.000 717.224 0.088 state.py:411(_reload)
1203318/1140924 20.818 0.000 505.566 0.000 base.py:93(__new__)
3748 0.011 0.000 331.440 0.088 fields.py:218(state_forwards)
3748 0.044 0.000 331.417 0.088 state.py:265(alter_field)
16259255/15822497 6.347 0.000 274.845 0.000 base.py:367(add_to_class)
1139698 6.725 0.000 262.949 0.000 state.py:946(<dictcomp>)
11278899/11261115 10.739 0.000 256.188 0.000 __init__.py:585(clone)
1260 0.005 0.000 226.089 0.179 models.py:81(state_forwards)
1260 0.023 0.000 226.070 0.179 state.py:118(add_model)
9732216/6892052 4.470 0.000 169.159 0.000 functional.py:49(__get__)
1769 0.006 0.000 158.544 0.090 fields.py:92(state_forwards)
1769 0.020 0.000 158.532 0.090 state.py:240(add_field)
11288707 77.641 0.000 135.041 0.000 __init__.py:494(deconstruct)
8806 0.038 0.000 101.489 0.012 state.py:549(clone)
11458241 14.602 0.000 88.258 0.000 __init__.py:861(contribute_to_class)
9081 0.112 0.000 84.192 0.009 state.py:603(__init__)
275 0.001 0.000 83.724 0.304 state.py:564(apps)
276 0.003 0.000 83.325 0.302 special.py:182(database_forwards)
1203317 16.597 0.000 74.351 0.000 options.py:169(contribute_to_class)
2147173 2.802 0.000 73.928 0.000 related.py:864(contribute_to_class)
2243638 6.835 0.000 72.596 0.000 related.py:346(contribute_to_class)
8053925/3306148 29.478 0.000 66.269 0.000 options.py:850(_get_fields)
8138 0.145 0.000 66.016 0.008 state.py:347(_find_reload_model)
2085402 5.914 0.000 63.316 0.000 state.py:33(_get_related_models)
1203183 5.935 0.000 59.876 0.000 base.py:373(_prepare)
23154 0.055 0.000 58.999 0.003 utils.py:100(execute)
23154 0.022 0.000 58.581 0.003 utils.py:66(execute)
23154 0.027 0.000 58.559 0.003 utils.py:76(_execute_with_wrappers)
23154 0.053 0.000 58.532 0.003 utils.py:82(_execute)
23155 58.403 0.003 58.473 0.003 {method 'execute' of 'psycopg2.extensions.cursor' objects}
52263890/82278 27.471 0.000 58.095 0.001 copy.py:128(deepcopy)
7094724/5712052 16.411 0.000 57.387 0.000 registry.py:386(lazy_model_operation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment