macOS / binaries /

lockstat

/usr/bin/lockstat
Report kernel lock and profiling statistics

The lockstat utility gathers and displays kernel locking and profiling statistics. By default, lockstat monitors all lock contention events, gathers frequency and timing data about those events, and displays the data in decreasing frequency order, so that the most common events appear first.

source: man