[#absl-RegisterMutexProfiler] = xref:absl.adoc[absl]::RegisterMutexProfiler :relfileprefix: ../ :mrdocs: Registers a hook for mutex contention profiling. == Synopsis Declared in `<absl/synchronization/mutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void RegisterMutexProfiler(void(* fn)(int64_t)); ---- == Description Only a single profiler can be installed in a running binary. == Parameters [cols="1,4"] |=== | Name| Description | *fn* | Callback invoked with the number of wait cycles on contention. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#