Skip to content

Instantly share code, notes, and snippets.

@cmeiklejohn
Created February 1, 2018 15:46
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/378e0879b2d4c8733e04a342b14eec68 to your computer and use it in GitHub Desktop.
Save cmeiklejohn/378e0879b2d4c8733e04a342b14eec68 to your computer and use it in GitHub Desktop.
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/unir/_checkouts/partisan$ cat eprof
****** Process <0.222.0> -- 100.00 % of profiled time ***
FUNCTION CALLS % TIME [uS / CALLS]
-------- ----- ------- ---- [----------]
prim_inet:send/3 4023 0.07 9779 [ 2.43]
partisan_peer_connection:send/3 4023 0.07 9900 [ 2.46]
inet_tcp:send/2 4023 0.08 10812 [ 2.69]
gen_tcp:send/2 4023 0.08 11458 [ 2.85]
gen_server:handle_msg/5 4023 0.08 11524 [ 2.86]
gen_server:handle_common_reply/6 4023 0.09 12415 [ 3.09]
gen_server:decode_msg/8 4023 0.09 12700 [ 3.16]
erlang:port_get_data/1 4023 0.10 13609 [ 3.38]
gen_server:try_dispatch/4 4023 0.10 14521 [ 3.61]
gen_server:loop/6 4023 0.12 16645 [ 4.14]
inet_db:lookup_socket/1 4023 0.15 21352 [ 5.31]
gen_server:try_dispatch/3 4023 0.16 22516 [ 5.60]
partisan_peer_service_client:encode/1 4023 0.17 24240 [ 6.03]
partisan_peer_service_client:handle_cast/2 4023 0.20 28666 [ 7.13]
partisan_peer_connection:send/2 4023 0.27 38268 [ 9.51]
ets:update_counter/3 24138 1.60 226452 [ 9.38]
erlang:port_command/3 4023 2.48 350495 [ 87.12]
erts_internal:port_command/3 4023 13.08 1851559 [ 460.24]
erlang:term_to_binary/1 4023 81.01 11463973 [ 2849.61]
------------------------------------------ ----- ------- -------- [----------]
Total: 96552 100.00% 14150884 [ 146.56]
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/unir/_checkouts/partisan$ cat eprof
****** Process <0.221.0> -- 100.00 % of profiled time ***
FUNCTION CALLS % TIME [uS / CALLS]
-------- ----- ------- ---- [----------]
partisan_util:'-term_to_iolist_/1-fun-0-'/1 60 0.01 184 [ 3.07]
lists:all/2 60 0.01 195 [ 3.25]
partisan_util:'-term_to_iolist_/1-lc$^2/1-2-'/1 140 0.02 520 [ 3.71]
prim_inet:send/3 4019 0.38 8902 [ 2.21]
partisan_util:term_to_iolist/1 4019 0.38 8979 [ 2.23]
inet_tcp:send/2 4019 0.39 9121 [ 2.27]
partisan_peer_connection:send/3 4019 0.47 11045 [ 2.75]
gen_server:decode_msg/8 4019 0.49 11527 [ 2.87]
gen_server:handle_msg/5 4019 0.53 12361 [ 3.08]
gen_tcp:send/2 4019 0.57 13434 [ 3.34]
erlang:port_get_data/1 4019 0.61 14276 [ 3.55]
gen_server:loop/6 4019 0.66 15487 [ 3.85]
gen_server:try_dispatch/4 4019 0.76 17837 [ 4.44]
partisan_peer_service_client:encode/1 4019 0.88 20661 [ 5.14]
gen_server:handle_common_reply/6 4019 0.88 20800 [ 5.18]
gen_server:try_dispatch/3 4019 1.06 24891 [ 6.19]
inet_db:lookup_socket/1 4019 1.13 26680 [ 6.64]
partisan_peer_service_client:handle_cast/2 4019 1.19 28067 [ 6.98]
partisan_peer_connection:send/2 4019 1.20 28327 [ 7.05]
erlang:tuple_to_list/1 8118 1.42 33393 [ 4.11]
erlang:atom_to_list/1 8078 1.75 41293 [ 5.11]
erlang:term_to_binary/1 8058 1.94 45760 [ 5.68]
partisan_util:'-term_to_iolist_/1-lc$^0/1-1-'/1 32372 5.75 135444 [ 4.18]
partisan_util:term_to_iolist_/1 28353 6.36 149851 [ 5.29]
erlang:port_command/3 4019 15.15 356631 [ 88.74]
erts_internal:port_command/3 4019 17.38 409165 [ 101.81]
ets:update_counter/3 109233 38.63 909523 [ 8.33]
----------------------------------------------- ------ ------- ------- [----------]
Total: 266814 100.00% 2354354 [ 8.82]
cmeiklejohn@parrhesia:/mnt/c/Users/chris/GitHub/unir/_checkouts/partisan$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment