Skip to content

Instantly share code, notes, and snippets.

@frankmullerl
Created January 2, 2020 23:37
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 frankmullerl/7fb9470e22869312d97011c0faf0046b to your computer and use it in GitHub Desktop.
Save frankmullerl/7fb9470e22869312d97011c0faf0046b to your computer and use it in GitHub Desktop.
LCNT output continued (macOS)
> erlang:system_info(system_version).
"Erlang/OTP 22 [erts-10.6] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:144] [hipe] [lock-counting] [dtrace]\n"
> erlang:statistics(reductions).
{165925199,165925199}
> length(erlang:processes()).
135
> lcnt:rt_opt({copy_save, true}),
> lcnt:clear(),
> timer:sleep(12000),
> lcnt:collect(),
> lcnt:conflicts().
lock id #tries #collisions collisions [%] time [us] duration [%]
----- --- ------- ------------ --------------- ---------- -------------
#Port<app@127.0.0.1.7613> 1 4 1 25.0000 72690401 80.9626
#Port<app@127.0.0.1.7750> 1 4 1 25.0000 66781229 74.3810
#Port<app@127.0.0.1.7759> 1 4 1 25.0000 64143043 71.4426
#Port<app@127.0.0.1.7757> 1 4 1 25.0000 62565517 69.6855
#Port<app@127.0.0.1.7825> 1 4 1 25.0000 62098458 69.1653
#Port<app@127.0.0.1.7582> 1 5 1 20.0000 24399047 27.1757
#Port<app@127.0.0.1.7579> 1 5 1 20.0000 23925151 26.6479
#Port<app@127.0.0.1.7584> 1 5 1 20.0000 22352902 24.8967
#Port<app@127.0.0.1.7576> 1 6 2 33.3333 19684920 21.9251
#Port<app@127.0.0.1.7581> 1 5 1 20.0000 13771787 15.3390
run_queue 14 199318 4893 2.4549 108105 0.1204
#Port<app@127.0.0.1.7899> 1 4 1 25.0000 32732 0.0365
#Port<app@127.0.0.1.7858> 1 4 1 25.0000 29041 0.0323
code_server 5 33746 700 2.0743 4213 0.0047
#Port<app@127.0.0.1.6563> 1 5 1 20.0000 3081 0.0034
#Port<app@127.0.0.1.10> 1 2862 107 3.7386 2590 0.0029
#Port<app@127.0.0.1.6623> 1 4 1 25.0000 2503 0.0028
drv_ev_state 128 18755 128 0.6825 2448 0.0027
#Port<app@127.0.0.1.7192> 1 4 1 25.0000 1560 0.0017
port_sched_lock 3214 40381 90 0.2229 1449 0.0016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment