[#absl-RegisterMutexProfiler]
= xref:absl.adoc[absl]::RegisterMutexProfiler
:relfileprefix: ../
:mrdocs:

Registers a hook for mutex contention profiling&period;

== Synopsis

Declared in `&lt;absl&sol;synchronization&sol;mutex&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
RegisterMutexProfiler(void(* fn)(int64&lowbar;t));
----

== Description

Only a single profiler can be installed in a running binary&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *fn*
| Callback invoked with the number of wait cycles on contention&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
