Skip to content

Instantly share code, notes, and snippets.

@cmeiklejohn
Created February 2, 2018 17:34
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 cmeiklejohn/6df7c1ffd808ba617b3c9ec84400ace6 to your computer and use it in GitHub Desktop.
Save cmeiklejohn/6df7c1ffd808ba617b3c9ec84400ace6 to your computer and use it in GitHub Desktop.
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/unir$ cat eprof-disterl-1
****** Process <0.3435.0> -- 100.00 % of profiled time ***
FUNCTION CALLS % TIME [uS / CALLS]
-------- ----- ------- ---- [----------]
inet_tcp:send/2 1 0.10 1 [ 1.00]
partisan_util:term_to_iolist/1 1 0.10 1 [ 1.00]
gen_server:handle_msg/5 1 0.10 1 [ 1.00]
partisan_peer_connection:send/3 1 0.21 2 [ 2.00]
prim_inet:send/3 1 0.21 2 [ 2.00]
gen_tcp:send/2 1 0.21 2 [ 2.00]
partisan_peer_connection:send/2 1 0.31 3 [ 3.00]
gen_server:try_dispatch/4 1 0.31 3 [ 3.00]
inet_db:lookup_socket/1 1 0.41 4 [ 4.00]
erlang:port_command/3 1 0.41 4 [ 4.00]
partisan_peer_service_client:handle_cast/2 1 0.41 4 [ 4.00]
gen_server:loop/6 1 0.41 4 [ 4.00]
gen_server:decode_msg/8 1 0.41 4 [ 4.00]
gen_server:try_dispatch/3 1 0.41 4 [ 4.00]
erlang:tuple_to_list/1 2 0.41 4 [ 2.00]
partisan_peer_service_client:encode/1 1 0.52 5 [ 5.00]
erlang:atom_to_list/1 2 0.62 6 [ 3.00]
erlang:port_get_data/1 1 0.93 9 [ 9.00]
erlang:term_to_binary/1 2 0.93 9 [ 4.50]
partisan_util:'-term_to_iolist_/1-lc$^0/1-1-'/1 8 2.17 21 [ 2.63]
partisan_util:term_to_iolist_/1 7 2.38 23 [ 3.29]
gen_server:handle_common_reply/6 1 8.16 79 [ 79.00]
erts_internal:port_command/3 1 79.86 773 [ 773.00]
----------------------------------------------- ----- ------- ---- [----------]
Total: 39 100.00% 968 [ 24.82]
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/unir$ cat eprof-partisan-1
****** Process <0.3434.0> -- 100.00 % of profiled time ***
FUNCTION CALLS % TIME [uS / CALLS]
-------- ----- ------- ---- [----------]
erlang:'++'/2 1 0.00 1 [ 1.00]
partisan_mochiglobal:get/2 1 0.00 2 [ 2.00]
error_handler:undefined_function/3 1 0.00 2 [ 2.00]
error_handler:crash/3 1 0.00 2 [ 2.00]
error_handler:crash/1 1 0.00 2 [ 2.00]
code_server:call/1 1 0.00 2 [ 2.00]
code:call/1 1 0.00 2 [ 2.00]
erlang:whereis/1 1 0.00 2 [ 2.00]
partisan_mochiglobal:get/3 1 0.00 3 [ 3.00]
partisan_config:get/2 1 0.00 3 [ 3.00]
code:ensure_loaded/1 1 0.00 3 [ 3.00]
erlang:raise/3 1 0.00 3 [ 3.00]
erlang:error/1 1 0.00 3 [ 3.00]
error_handler:ensure_loaded/1 1 0.00 4 [ 4.00]
erlang:demonitor/2 1 0.00 4 [ 4.00]
partisan_mochiglobal:key_to_module/1 1 0.00 6 [ 6.00]
erlang:list_to_atom/1 1 0.00 7 [ 7.00]
erlang:monitor/2 1 0.00 12 [ 12.00]
erlang:get_stacktrace/0 1 0.00 30 [ 30.00]
partisan_util:term_to_iolist/1 30 0.00 47 [ 1.57]
inet_tcp:send/2 29 0.00 54 [ 1.86]
gen_server:handle_msg/5 30 0.00 55 [ 1.83]
prim_inet:send/3 29 0.00 64 [ 2.21]
gen_server:decode_msg/8 30 0.00 64 [ 2.13]
gen_tcp:send/2 29 0.00 64 [ 2.21]
erlang:port_get_data/1 29 0.00 68 [ 2.34]
erlang:put/2 29 0.00 71 [ 2.45]
partisan_peer_connection:send/3 29 0.00 73 [ 2.52]
gen_server:try_dispatch/4 30 0.00 75 [ 2.50]
gen_server:handle_common_reply/6 30 0.00 84 [ 2.80]
erlang:monotonic_time/1 30 0.01 89 [ 2.97]
partisan_peer_connection:monotonic_now/0 30 0.01 99 [ 3.30]
erlang:process_info/2 30 0.01 104 [ 3.47]
partisan_peer_connection:monotonic_should_send/2 30 0.01 108 [ 3.60]
inet_db:lookup_socket/1 29 0.01 129 [ 4.45]
erlang:port_command/3 29 0.01 129 [ 4.45]
gen_server:try_dispatch/3 30 0.01 132 [ 4.40]
partisan_peer_service_client:encode/1 30 0.01 134 [ 4.47]
partisan_peer_connection:send/2 30 0.01 144 [ 4.80]
gen_server:loop/6 30 0.02 373 [ 12.43]
partisan_peer_service_client:handle_cast/2 30 0.03 434 [ 14.47]
partisan_util:'-term_to_iolist_/1-fun-0-'/1 7184 1.17 20237 [ 2.82]
lists:all/2 7184 1.29 22348 [ 3.11]
erts_internal:port_command/3 29 2.91 50265 [ 1733.28]
erlang:tuple_to_list/1 45453 4.77 82462 [ 1.81]
erlang:term_to_binary/1 43914 5.35 92395 [ 2.10]
partisan_util:'-term_to_iolist_/1-lc$^2/1-2-'/1 58432 9.74 168298 [ 2.88]
erlang:atom_to_list/1 77924 12.76 220591 [ 2.83]
partisan_util:'-term_to_iolist_/1-lc$^0/1-1-'/1 176360 29.86 516145 [ 2.93]
partisan_util:term_to_iolist_/1 182185 32.00 553025 [ 3.04]
------------------------------------------------ ------ ------- ------- [----------]
Total: 599336 100.00% 1728453 [ 2.88]
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/unir$ cat eprof-partisan-4
****** Process <0.3443.0> -- 100.00 % of profiled time ***
FUNCTION CALLS % TIME [uS / CALLS]
-------- ----- ------- ---- [----------]
partisan_util:term_to_iolist/1 7 0.00 9 [ 1.29]
gen_server:handle_msg/5 7 0.00 12 [ 1.71]
gen_tcp:send/2 7 0.00 14 [ 2.00]
gen_server:try_dispatch/4 7 0.00 15 [ 2.14]
erlang:put/2 7 0.00 15 [ 2.14]
erlang:port_get_data/1 7 0.01 16 [ 2.29]
prim_inet:send/3 7 0.01 17 [ 2.43]
gen_server:decode_msg/8 7 0.01 17 [ 2.43]
gen_server:handle_common_reply/6 7 0.01 18 [ 2.57]
erlang:monotonic_time/1 7 0.01 21 [ 3.00]
partisan_peer_connection:send/3 7 0.01 22 [ 3.14]
partisan_peer_connection:monotonic_should_send/2 7 0.01 22 [ 3.14]
partisan_peer_connection:monotonic_now/0 7 0.01 24 [ 3.43]
inet_tcp:send/2 7 0.01 25 [ 3.57]
erlang:process_info/2 7 0.01 26 [ 3.71]
gen_server:try_dispatch/3 7 0.01 28 [ 4.00]
inet_db:lookup_socket/1 7 0.01 31 [ 4.43]
partisan_peer_connection:send/2 7 0.01 32 [ 4.57]
partisan_peer_service_client:encode/1 7 0.01 32 [ 4.57]
erlang:port_command/3 7 0.01 34 [ 4.86]
partisan_peer_service_client:handle_cast/2 7 0.02 67 [ 9.57]
gen_server:loop/6 7 0.05 143 [ 20.43]
partisan_util:'-term_to_iolist_/1-fun-0-'/1 882 0.82 2506 [ 2.84]
lists:all/2 882 0.85 2600 [ 2.95]
erts_internal:port_command/3 7 3.34 10216 [ 1459.43]
erlang:tuple_to_list/1 8713 4.37 13354 [ 1.53]
erlang:term_to_binary/1 8420 5.54 16949 [ 2.01]
partisan_util:'-term_to_iolist_/1-lc$^2/1-2-'/1 10209 9.17 28057 [ 2.75]
erlang:atom_to_list/1 13555 12.94 39597 [ 2.92]
partisan_util:'-term_to_iolist_/1-lc$^0/1-1-'/1 32493 31.29 95719 [ 2.95]
partisan_util:term_to_iolist_/1 33114 31.47 96284 [ 2.91]
------------------------------------------------ ------ ------- ------ [----------]
Total: 108429 100.00% 305922 [ 2.82]
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/unir$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment