Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
In [16]: nodestats.sort_stats('tottime').print_stats(20)
Sat Jan 19 18:51:56 2019 launch_node
823489287 function calls (811373422 primitive calls) in 524.989 seconds
Ordered by: internal time
List reduced from 2680 to 20 due to restriction <20>
ncalls tottime percall cumtime percall filename:lineno(function)
22413 166.017 0.007 347.034 0.015 /home/veox/src/trinity/trinity/_utils/datastructures.py:659(_find_oldest_unpruned_task_id)
1 68.564 68.564 524.683 524.683 {method 'run_forever' of 'uvloop.loop.Loop' objects}
169509511 58.527 0.000 58.527 0.000 {built-in method builtins.getattr}
165282331 47.586 0.000 47.586 0.000 /home/veox/src/trinity/trinity/_utils/datastructures.py:305(task)
165215389 46.035 0.000 46.035 0.000 /home/veox/src/trinity/trinity/_utils/datastructures.py:655(_validate_has_task)
165381631 27.500 0.000 85.333 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/serializable.py:329(field_fn_getter)
4681672/59880 13.757 0.000 17.633 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/codec.py:156(consume_payload)
16023230 4.007 0.000 7.238 0.000 {built-in method builtins.isinstance}
1044575 3.767 0.000 14.205 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/serializable.py:41(validate_args_and_kwargs)
1866190/179959 3.601 0.000 391.881 0.002 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/eth_utils/functional.py:44(inner)
787633/53463 3.279 0.000 6.464 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/codec.py:243(_apply_rlp_cache)
4514118/1800151 3.276 0.000 28.800 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/lists.py:80(deserialize)
4681672 2.775 0.000 3.242 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/codec.py:117(consume_length_prefix)
556144 2.400 0.000 14.112 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/serializable.py:190(__init__)
1044575 2.297 0.000 8.194 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/serializable.py:32(_get_duplicates)
2771444 2.183 0.000 3.938 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/big_endian_int.py:38(deserialize)
1044575 1.910 0.000 5.147 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/collections/__init__.py:548(__init__)
4509734 1.788 0.000 8.795 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/serializable.py:73(merge_args_to_kwargs)
2306 1.640 0.001 1.640 0.001 {built-in method _openssl.EC_KEY_set_public_key_affine_coordinates}
2306 1.631 0.001 1.631 0.001 {built-in method _openssl.EC_POINT_mul}
Sat Jan 19 19:16:25 2019 launch_node
807818385 function calls (797994853 primitive calls) in 491.334 seconds
Ordered by: internal time
List reduced from 2682 to 20 due to restriction <20>
ncalls tottime percall cumtime percall filename:lineno(function)
22001 166.617 0.008 347.718 0.016 /home/veox/src/trinity/trinity/_utils/datastructures.py:650(_find_oldest_unpruned_task_id)
172295472 57.571 0.000 57.571 0.000 {built-in method builtins.getattr}
1 51.266 51.266 491.042 491.042 {method 'run_forever' of 'uvloop.loop.Loop' objects}
168664589 47.443 0.000 47.443 0.000 /home/veox/src/trinity/trinity/_utils/datastructures.py:646(_validate_has_task)
168732283 46.496 0.000 46.496 0.000 /home/veox/src/trinity/trinity/_utils/datastructures.py:304(task)
168807335 28.240 0.000 85.207 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/serializable.py:329(field_fn_getter)
3628753/22010 10.354 0.000 13.554 0.001 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/codec.py:156(consume_payload)
42051 4.279 0.000 4.879 0.000 /usr/lib64/python3.7/asyncio/futures.py:306(_copy_future_state)
12967223 3.094 0.000 5.634 0.000 {built-in method builtins.isinstance}
827301 2.872 0.000 11.411 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/serializable.py:41(validate_args_and_kwargs)
1525998/49451 2.807 0.000 383.782 0.008 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/eth_utils/functional.py:44(inner)
666206/11892 2.751 0.000 5.427 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/codec.py:243(_apply_rlp_cache)
3466852/1482945 2.450 0.000 21.925 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/lists.py:80(deserialize)
3628753 2.309 0.000 2.651 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/codec.py:117(consume_length_prefix)
22737 1.722 0.000 1.722 0.000 {built-in method _openssl.EVP_CipherUpdate}
444528 1.686 0.000 10.769 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/serializable.py:190(__init__)
1695412 1.677 0.000 1.698 0.000 {method 'difference' of 'set' objects}
2059847 1.621 0.000 2.925 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/big_endian_int.py:38(deserialize)
827301 1.604 0.000 6.183 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/site-packages/rlp/sedes/serializable.py:32(_get_duplicates)
827301 1.509 0.000 4.017 0.000 /home/veox/src/trinity/.virtualenv/trinity/lib/python3.7/collections/__init__.py:548(__init__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment