mutextrace

Lock debugging tool

Install

All systems
curl cmd.cat/mutextrace.sh
Debian Debian
apt-get install mutextrace
Ubuntu
apt-get install mutextrace
Windows (WSL2)
sudo apt-get update sudo apt-get install mutextrace
Raspbian
apt-get install mutextrace

mutextrace

Lock debugging tool

This tool displays mutexes locked and unlocked during execution of a program, and can provide hints for debugging multithreaded applications. As it is fairly lightweight and easy to use, it is ideal at the start of a debugging session or when only limited resources are available. It cannot detect data races as it only looks at the synchronisation primitives themselves; if you need that, use helgrind (in the valgrind package) instead.