[#absl-RegisterMutexTracer] = xref:absl.adoc[absl]::RegisterMutexTracer :relfileprefix: ../ :mrdocs: Registers a hook for `Mutex` tracing. == Synopsis Declared in `<absl/synchronization/mutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void RegisterMutexTracer(void(* fn)(char const*, void const*, int64_t)); ---- == Description This has the same ordering and single‐use limitations as `RegisterMutexProfiler()`. == Parameters [cols="1,4"] |=== | Name| Description | *fn* | Callback invoked with an event name, an opaque mutex handle, and the number of wait cycles. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#